Make sure to actually commit GSettings changes
g_settings_set_* is async, so make sure the change is actually performed before returning and eventually exiting. This mostly affected the gtk_theme update binary, because that isn't long running unlike the kded module.