extensionsService: Fix setting prefs dialog parent
Between the GTK4 port and the latest GTK4 version, calling realize() on a newly created window to force its surface to be created stopped working.
So instead, wait for the window to get realized regularly to set its parent.