flush_global_modules when updating extensions