[XFS] Fix race condition in xfs_write().