xfs: refactor shift-by-merge into xfs_bmse_merge() helper