Allow creating MemoryMappedFiles with an in-memory and on-disk capacity of zero on Unix.

This is necessary to map special files such as /dev/mem.