[runtime] Rewrite MemoryMappedFile to support named mappings.