Slightly simplify logic in remove_pending_lock_requests_by_mid()