[libvirt] [PATCH v3 10/21] tpm: Refactor virTPMEmulatorInit to use loop