Refactor setThreadName to have the std::thread::id overload as the implementation