mainloop: Add g_source_set_static_name
g_source_set_name duplicates the string, and this is showing up as one of the more prominent sources of strdups in GTK profiles, despite all the names we use being literals.
Add a variant that avoids the overhead.