Replace std::unique_lock with std::lock_guard.
Replace std::unique_lock with std::lock_guard.

Summary:
std::lock_guard has a better performance than std::unique_lock in scoped-lock.
Closes https://github.com/facebook/folly/pull/840

Reviewed By: djwatson

Differential Revision: D7888672

Pulled By: yfeldblum

fbshipit-source-id: 391082aa79ada67a3906e828d68f8cc2a29bf22c

facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly