what was bad with lock_guard?