memory: differentiate memory_region_is_logging and memory_region_get_dirty_log_mask