barelease: Fix an error in remote_lock.