[server][testChildProcessManager] Fix a potential problem that may calls g_main_loop_quit() before m_loop is created.