Factor out g_main_context_init_pipe from g_main_context_new to initialize