[PATCH v20 4/6] msvcr100: Add reference counting to thread contexts.