sshbuf_maybe_pack
sshbuf_maybe_pack(buf, max_size < buf->size);
sshbuf_maybe_pack(buf, buf->size + len > buf->max_size);