idx: Don't create broken .tbi or .csi when file unsorted (VCF/BCF/BAM)