[libvirt] [PATCH 3/4] conf: make virDomainControllerFindUnusedIndex() more generally usable