Minor refactor of iobuf_append()