KAFKA-748 Maintain mmap position after resizing index. Also add a few more assertions.