Replaced LockFile with Mutex for 2.4 compatibility