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