Use mmap for packing files.

Instead of cycle of read/write mmap the whole file to allow
libarchive to make internal optimizations based on the whole file.