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.
!820 (merged)