lock qemu_driver early in qemuGetSchedulerParametersFlags()
lock qemu_driver early in qemuGetSchedulerParametersFlags()

If we pass VIR_DOMAIN_AFFECT_LIVE | VIR_DOMAIN_AFFECT_CONFIG to
qemuGetSchedulerParametersFlags() or *nparams is less than 1,
we will unlock qemu_driver without locking it. It's very dangerous.

We should lock qemu_driver after calling virCheckFlags().

zhlcindy/libvirt-1.1.4-maintain,rmarwaha/libvirt1,VenkatDatta/libvirt,rlaager/libvirt,libvirt/libvirt,cbosdo/libvirt,rmarwaha/libvirt1,kantai/libvirt-vfork,siboulet/libvirt-openvz,rmarwaha/libvirt,leilihh/libvirt,taget/libvirt,jeckersb/libvirt,foomango/libvirt,cbosdo/libvirt,iam-TJ/libvirt,rmarwaha/libvirt1,jardasgit/libvirt,wiedi/libvirt,andreabolognani/libvirt,eskultety/libvirt,andreabolognani/libvirt,jardasgit/libvirt,warewolf/libvirt,danwent/libvirt-ovs,bjzhang/libvirt,olafhering/libvirt,warewolf/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt,usc-isi/libvirt,cbosdo/libvirt,soulxu/libvirt-xuhj,leilihh/libvirt,danwent/libvirt-ovs,nertpinx/libvirt,jardasgit/libvirt,soulxu/libvirt-xuhj,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,emaste/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,wiedi/libvirt,emaste/libvirt,crobinso/libvirt,shugaoye/libvirt,taget/libvirt,emaste/libvirt,agx/libvirt,usc-isi/libvirt,bjzhang/libvirt,fabianfreyer/libvirt,bjzhang/libvirt,taget/libvirt,jfehlig/libvirt,soulxu/libvirt-xuhj,cbosdo/libvirt,usc-isi/libvirt,wiedi/libvirt,zippy2/libvirt,novel/fbsd-libvirt,soulxu/libvirt-xuhj,rmarwaha/libvirt,wiedi/libvirt,fabianfreyer/libvirt,trainstack/libvirt,zippy2/libvirt,siboulet/libvirt-openvz,dumbbell/libvirt,eskultety/libvirt,warewolf/libvirt,elmarco/libvirt,emaste/libvirt,andreabolognani/libvirt,datto/libvirt,jfehlig/libvirt,libvirt/libvirt,jardasgit/libvirt,emaste/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,warewolf/libvirt,elmarco/libvirt,wiedi/libvirt,shugaoye/libvirt,olafhering/libvirt,danwent/libvirt-ovs,novel/fbsd-libvirt,andreabolognani/libvirt,dumbbell/libvirt,trainstack/libvirt,shugaoye/libvirt,foomango/libvirt,crobinso/libvirt,trainstack/libvirt,agx/libvirt,novel/fbsd-libvirt,iam-TJ/libvirt,rmarwaha/libvirt,elmarco/libvirt,nertpinx/libvirt,jeckersb/libvirt,warewolf/libvirt,novel/fbsd-libvirt,rlaager/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,trainstack/libvirt,leilihh/libvirt,taget/libvirt,kantai/libvirt-vfork,agx/libvirt,eskultety/libvirt,emaste/libvirt,foomango/libvirt,eskultety/libvirt,dumbbell/libvirt,bjzhang/libvirt,usc-isi/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,agx/libvirt,rmarwaha/libvirt1,fabianfreyer/libvirt,cbosdo/libvirt,kantai/libvirt-vfork,jeckersb/libvirt,rlaager/libvirt,foomango/libvirt,iam-TJ/libvirt,foomango/libvirt,datto/libvirt,dumbbell/libvirt,zippy2/libvirt,zippy2/libvirt,danwent/libvirt-ovs,iam-TJ/libvirt,fabianfreyer/libvirt,rlaager/libvirt,siboulet/libvirt-openvz,iam-TJ/libvirt,emaste/libvirt,fabianfreyer/libvirt,kantai/libvirt-vfork,nertpinx/libvirt,warewolf/libvirt,leilihh/libvirt,andreabolognani/libvirt,wiedi/libvirt,agx/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,bjzhang/libvirt,rmarwaha/libvirt,olafhering/libvirt,rmarwaha/libvirt1,novel/fbsd-libvirt,jfehlig/libvirt,jfehlig/libvirt,eskultety/libvirt,dumbbell/libvirt,elmarco/libvirt,elmarco/libvirt,iam-TJ/libvirt,danwent/libvirt-ovs,shugaoye/libvirt,jeckersb/libvirt,nertpinx/libvirt,soulxu/libvirt-xuhj,usc-isi/libvirt,trainstack/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,dumbbell/libvirt,jeckersb/libvirt,datto/libvirt,rmarwaha/libvirt,leilihh/libvirt,trainstack/libvirt,warewolf/libvirt,crobinso/libvirt,wiedi/libvirt,leilihh/libvirt,libvirt/libvirt,jeckersb/libvirt,jeckersb/libvirt,rlaager/libvirt,taget/libvirt,crobinso/libvirt,datto/libvirt,VenkatDatta/libvirt,kantai/libvirt-vfork,libvirt/libvirt,nertpinx/libvirt,novel/fbsd-libvirt,trainstack/libvirt,iam-TJ/libvirt,datto/libvirt,olafhering/libvirt