widl: Introduce for_each_iface helper and use it in write_procformatstring.