[server][ChildProcessManager] Wait for the completion of reset() in the GLib main loop so that GLib events can run.