Nikolay Sivov : combase: Set a flag on thread id initialization.