make r_io_mwrite check map->flags