qemu.tests: fix login test fail when need_install is yes

VM paused after install finished because of option '-no-shutdown', and
env.get_vm() got a paused VM, so case will fail at wait_for_login() when
need_install is 'yes';

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