[PATCH 1/5] Use virDomainObjEndAPI() more