Fix LOCK call to use the new LOCK system