[PATCH v10 4/7] msvcr100: Add reference counting to thread contexts.