[libvirt] [PATCH v5 08/20] tpm: Refactor virTPMEmulatorInit to use loop