This class already has variables named m_lock, and it's also strange that locals are named with the `m_` prefix. So lets fix that to make the code more readable. Found by PVS-Studio.