xfstests: use a common _filter_scratch function