[kmseqfile] slight refactor in seqfile_create

Check the file has been opened before doing anything else