virttest.qemu_vm: make reboot work for linux serial session

Signed-off-by: Xu Tian <xutian@redhat.com>