Use C++11 std::mutex and std::lock_guard instead of our RAII wrapper.