Updating the lock.