Use std::lock_guard instead of STG_LOCKER.