torture/ioctl: make sparse file support check generic