We found that samtools sort would not error on disk full

but would instead continue to write to essentially empty files.  I slightly
modified the bam_sort code to check for errorcodes in the filepointer
object which are set when flushes fail.  Multi-core sort will
now fail properly if the disk is full and files can not be written to.