submodule.c: tighten scope of changed_submodule_names struct