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

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #1197 from jzupka/fix_tail_threads

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