[PATCH 6.12 151/322] btrfs: send: factor out common logic when sending xattrs