Create a new writer for multi-pack-index files.
multi-pack-index
location to store the writer pointer.
the directory where the .pack and .idx files are. The multi-pack-index file will be written in this directory, too.
.pack
.idx
0 or an error code