Replace cds::OS::ThreadId with std::thread::id, cds::OS::nullThreadId() with std::thread::id()