Clean up dmu_read_uio() and set xuio in an #ifdef UIO_XUIO block.