common/iobuf.c: Combine iobuf_open, iobuf_create and iobuf_openrw.