[XFS] Fix race in xfs_write() between direct and buffered I/O with DMAPI