Fix potential crash due to changed XIO_MAX_IOV.

Also, set a local max.

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