ci: Setup submodules and subprojects before building on dist
Coming from https://gitlab.gnome.org/GNOME/glib/-/jobs/2123202
Also handle a permission issue.
Job for the dist-job of this commit is at https://gitlab.gnome.org/3v1n0/glib/-/jobs/2123367