virtio_config: fix len calculation of config elements