Use lock_guard instead mutex.