LUCENE-6813: OfflineSorter no longer removes its output file up front; fix file handle leak in RangeTreeWriter