vhost: fix dereferencing invalid pointer after realloc