[gnome-base/gdm] gdm-set-session: make sure to execute inside the main loop