Merge pull request #5404 from lhchavez/multi-pack-index-write midx: Add a way to write multi-pack-index files