Merge pull request #3957 from lioncash/mutex FifoRecorder: Use lock_guard instead of explicit lock/unlock