Fixed smart referencing for virDomainPtrs