[3.8] Remove disk IO on media_subdef::get_size