[libvirt] [PATCHv2 1/6] threads: check for failure to set thread-local value