[XFS] Reduce stack usage within xfs_bmapi by rearranging some code,