Removed some unnecesary calls to LOCK.