rpc: add an rpc_pipe_open method