Added missing use of Kernel::System::Lock.