xfs: convert open coded corruption check to use XFS_IS_CORRUPT