Add libnetapi_open_pipe, inspired by the cli_cm_ interface.