[libvirt] [PATCH 07/11] Introduce portability APIs for creating threads