virt: Fix hanging tail_threads which are created by recreating env.

Signed-off-by: Jiří Župka <jzupka@redhat.com>