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