[libvirt] [PATCH v6 07/19] tpm: Refactor virTPMEmulatorInit to use loop