net/vhost: fix crash when creating vdev dynamically