Make JournalSegmentWriter.getNextIndex() final