tests/virtio-9p: explicitly handle potential integer overflows