Renamed the lock functions.