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