virtest.virt_vm : modify serial_login problem

Fix the issue can not login guest via serial, if we close
the serial session have been created.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>