overwrite_wim_inplace(): Only write new metadata resources for modified images