[PATCH v21 4/8] msvcr100: Add reference counting to thread contexts.