Support setting thread name via std::thread::id