[PATCH] rpc: avoid leak of GSource in use for interrupting main loop