revision.c: use refs_for_each*() instead of for_each_*_submodule()