std::raii_thread_base access fix