openvz: Refactor extraction of vcpu count
openvz: Refactor extraction of vcpu count

To simplify further refactors change the way the vcpu count is extracted
to use a temp variable rather than juggling with def->maxvcpus.

jardasgit/libvirt,jfehlig/libvirt,nertpinx/libvirt,datto/libvirt,fabianfreyer/libvirt,eskultety/libvirt,jardasgit/libvirt,rlaager/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,eskultety/libvirt,andreabolognani/libvirt,rlaager/libvirt,olafhering/libvirt,datto/libvirt,fabianfreyer/libvirt,crobinso/libvirt,jfehlig/libvirt,eskultety/libvirt,rlaager/libvirt,nertpinx/libvirt,datto/libvirt,libvirt/libvirt,libvirt/libvirt,datto/libvirt,nertpinx/libvirt,taget/libvirt,zippy2/libvirt,fabianfreyer/libvirt,olafhering/libvirt,nertpinx/libvirt,crobinso/libvirt,andreabolognani/libvirt,jardasgit/libvirt,andreabolognani/libvirt,crobinso/libvirt,zippy2/libvirt,libvirt/libvirt,VenkatDatta/libvirt,crobinso/libvirt,rlaager/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,olafhering/libvirt,VenkatDatta/libvirt,rlaager/libvirt,datto/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,eskultety/libvirt,taget/libvirt,libvirt/libvirt,eskultety/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,nertpinx/libvirt,zippy2/libvirt,jfehlig/libvirt,taget/libvirt,olafhering/libvirt,taget/libvirt,jardasgit/libvirt,taget/libvirt,zippy2/libvirt