Fix buffer advance logic, plus refactor vrec_next.

Add missing advance of user-supplied buffer position on
segment advance (xdr_ioq_getbytes, xdr_ioq_putbytes).

Also reorganize vrec_next, which had acquired a special
case in its prologue.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>