[PATCH v24 4/5] msvcr100: Add reference counting to thread contexts.