[libvirt] [PATCH] Fix flaw in thread creation APIs