memory: add readonly support to memory_region_init_ram_from_file()