Fix std::lock_guard life-time issue
As the std::lock_guard instance had no name, it was destroyed at the end of the statement instead of the end of the method.
(cherry picked from commit d3b2b80c)
Edited by François Grisez
As the std::lock_guard instance had no name, it was destroyed at the end of the statement instead of the end of the method.
(cherry picked from commit d3b2b80c)