lxccontainer: don't lock around getstate and freeze/unfreeze (v2)
lxccontainer: don't lock around getstate and freeze/unfreeze (v2)

Those go through commands.c and are already mutex'ed that way.

Also remove a unmatched container_disk_unlock in lxcapi_create.

Since is_stopped uses getstate which is no longer locked, rename
it to drop the _locked suffix.

And convert save_config to taking the disk lock.  This way the
save_ and load_config are mutexing each other, as they should.

Changelog: May 29:
   Per Dwight's comment, take the lock before opening the config
      FILE *.
   Only take disklock at load and save_config when we're using the
   container's config file, not when read/writing from/to another
   file.

Signed-off-by: Serge Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>
Acked-by: Dwight Engen <1793d65cf7b9eefb2bb8f5bee9a4b8ba782c26da@oracle.com>

Distrotech/lxc,ojkastl/lxc_Patches,terceiro/lxc,jirislaby/lxc,christiaan/lxc,armcc/lxc,rldleblanc/lxc,armcc/lxc,DarknessBeforeDawn/lxc,virajs/lxc,bmoar/lxc,raspberrypython/lxc,JohnPeacockMessageSystems/lxc,ss1h2a3tw/lxc,ojkastl/lxc_Patches,glensc/lxc,major/lxc,codebauss/lxc,LynxChaus/lxc,yubo/lxc,federicobriata/lxc,LynxChaus/lxc,ioops/lxc,glensc/lxc,ss1h2a3tw/lxc,hfuCN/lxc,Pelagicore/lxc,yubo/lxc,akshaykarle/lxc,sapun/lxc,ojkastl/lxc_Patches,rldleblanc/lxc,GreatFruitOmsk/lxc,thmo/lxc,raspberrypython/lxc,Ponce/lxc,JohnPeacockMessageSystems/lxc,codebauss/lxc,aeris/lxc,terceiro/lxc,ecarrara/lxc,raspberrypython/lxc,cjwatson/lxc,GreatFruitOmsk/lxc,bmoar/lxc,bmoar/lxc,aeris/lxc,weizhenwei/lxc,fwilson42/lxc,DarknessBeforeDawn/lxc,hallyn/lxc,weizhenwei/lxc,jirislaby/lxc,smoser/lxc,lisongmin/lxc,tych0/lxc,cjwatson/lxc,akshaykarle/lxc,sapun/lxc,codebauss/lxc,akshaykarle/lxc,jirislaby/lxc,ksperis/lxc,QingweiPeterLan/cs188-lxc,hkjolhede/lxc,efiop/lxc,bostjan/lxc,hfuCN/lxc,ksperis/lxc,bostjan/lxc,sapun/lxc,aeris/lxc,fwilson42/lxc,smoser/lxc,szaszg/lxc,christiaan/lxc,hkjolhede/lxc,cjwatson/lxc,QingweiPeterLan/cs188-lxc,DarknessBeforeDawn/lxc,regit/lxc,thmo/lxc,caglar10ur/lxc,federicobriata/lxc,smoser/lxc,armcc/lxc,Pelagicore/lxc,lazy404/lxc,fwilson42/lxc,yubo/lxc,ysbnim/lxc,hallyn/lxc,Pelagicore/lxc,szaszg/lxc,caglar10ur/lxc,glensc/lxc,christiaan/lxc,lazy404/lxc,rowhit/lxc,hkjolhede/lxc,major/lxc,ioops/lxc,ecarrara/lxc,ysbnim/lxc,federicobriata/lxc,ecarrara/lxc,JohnPeacockMessageSystems/lxc,ksperis/lxc,ysbnim/lxc,GreatFruitOmsk/lxc,ojkastl/lxc_Patches,weizhenwei/lxc,efiop/lxc,QingweiPeterLan/cs188-lxc,caglar10ur/lxc,bostjan/lxc,major/lxc,hfuCN/lxc,virajs/lxc,virajs/lxc,Ponce/lxc,rldleblanc/lxc,lisongmin/lxc,thmo/lxc,rowhit/lxc,tych0/lxc,Ponce/lxc,LynxChaus/lxc,regit/lxc,smoser/lxc,hallyn/lxc,lazy404/lxc,ss1h2a3tw/lxc,terceiro/lxc,ioops/lxc,efiop/lxc,regit/lxc,szaszg/lxc,tych0/lxc,lisongmin/lxc,rowhit/lxc,Distrotech/lxc,Distrotech/lxc