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