Change the metastore interaction to be mmaped.

This has the next effect of allowing the segment size (unit_limit)
to be changed safely after initialization.  This also removes a
syscall from the restore operation (which is infrequent and should
not improve performance noticeably).