locking: Don't fail in error handling if lock isn't owned