package.bbclass: Update locking now that pstaging is always on.
package.bbclass: Update locking now that pstaging is always on.

In a few functions we checked if pstagingactive was set and if so, grabbed
the lock.  But really, we should always be locking here.  And inside of
package_do_shlibs we need to keep the lock a little longer than we had
been otherwise we can run into a race..

Signed-off-by: Tom Rini <4c3d5c8f8c21c27dd329bd585f481113514551fd@mentor.com>

nx111/openembeded_openpli2.1_nx111,BlackPole/bp-openembedded,sutajiokousagi/openembedded,sentient-energy/emsw-oe-mirror,hulifox008/openembedded,dellysunnymtech/sakoman-oe,mrchapp/arago-oe-dev,sentient-energy/emsw-oe-mirror,buglabs/oe-buglabs,xifengchuo/openembedded,sledz/oe,mrchapp/arago-oe-dev,nx111/openembeded_openpli2.1_nx111,scottellis/overo-oe,giobauermeister/openembedded,dellysunnymtech/sakoman-oe,openembedded/openembedded,JamesAng/goe,dellysunnymtech/sakoman-oe,hulifox008/openembedded,SIFTeam/openembedded,JamesAng/oe,SIFTeam/openembedded,JamesAng/goe,dellysunnymtech/sakoman-oe,nx111/openembeded_openpli2.1_nx111,dave-billin/overo-ui-moos-auv,dave-billin/overo-ui-moos-auv,hulifox008/openembedded,sampov2/audio-openembedded,dave-billin/overo-ui-moos-auv,hulifox008/openembedded,JamesAng/goe,thebohemian/openembedded,yyli/overo-oe,JamesAng/goe,BlackPole/bp-openembedded,thebohemian/openembedded,dellysunnymtech/sakoman-oe,JamesAng/oe,BlackPole/bp-openembedded,buglabs/oe-buglabs,nx111/openembeded_openpli2.1_nx111,yyli/overo-oe,xifengchuo/openembedded,xifengchuo/openembedded,JamesAng/goe,BlackPole/bp-openembedded,SIFTeam/openembedded,sentient-energy/emsw-oe-mirror,buglabs/oe-buglabs,mrchapp/arago-oe-dev,yyli/overo-oe,openembedded/openembedded,sentient-energy/emsw-oe-mirror,sutajiokousagi/openembedded,sutajiokousagi/openembedded,scottellis/overo-oe,sampov2/audio-openembedded,sentient-energy/emsw-oe-mirror,dellysunnymtech/sakoman-oe,giobauermeister/openembedded,thebohemian/openembedded,giobauermeister/openembedded,dave-billin/overo-ui-moos-auv,SIFTeam/openembedded,mrchapp/arago-oe-dev,nx111/openembeded_openpli2.1_nx111,xifengchuo/openembedded,openembedded/openembedded,SIFTeam/openembedded,xifengchuo/openembedded,sutajiokousagi/openembedded,openembedded/openembedded,yyli/overo-oe,mrchapp/arago-oe-dev,sampov2/audio-openembedded,nx111/openembeded_openpli2.1_nx111,giobauermeister/openembedded,sampov2/audio-openembedded,buglabs/oe-buglabs,thebohemian/openembedded,scottellis/overo-oe,BlackPole/bp-openembedded,giobauermeister/openembedded,SIFTeam/openembedded,scottellis/overo-oe,openembedded/openembedded,openembedded/openembedded,dave-billin/overo-ui-moos-auv,nx111/openembeded_openpli2.1_nx111,BlackPole/bp-openembedded,sledz/oe,sledz/oe,hulifox008/openembedded,giobauermeister/openembedded,dellysunnymtech/sakoman-oe,buglabs/oe-buglabs,sentient-energy/emsw-oe-mirror,giobauermeister/openembedded,yyli/overo-oe,thebohemian/openembedded,sledz/oe,giobauermeister/openembedded,sampov2/audio-openembedded,JamesAng/goe,openembedded/openembedded,JamesAng/oe,dave-billin/overo-ui-moos-auv,sledz/oe,sampov2/audio-openembedded,xifengchuo/openembedded,hulifox008/openembedded,scottellis/overo-oe,openembedded/openembedded,thebohemian/openembedded,dellysunnymtech/sakoman-oe,JamesAng/oe,xifengchuo/openembedded,openembedded/openembedded,mrchapp/arago-oe-dev,scottellis/overo-oe,xifengchuo/openembedded,sledz/oe,sutajiokousagi/openembedded,yyli/overo-oe,JamesAng/oe,dave-billin/overo-ui-moos-auv,JamesAng/goe,dellysunnymtech/sakoman-oe,sampov2/audio-openembedded,JamesAng/oe,openembedded/openembedded,sledz/oe,giobauermeister/openembedded,hulifox008/openembedded,buglabs/oe-buglabs,thebohemian/openembedded,xifengchuo/openembedded,JamesAng/oe,openembedded/openembedded,buglabs/oe-buglabs,sutajiokousagi/openembedded,sentient-energy/emsw-oe-mirror,SIFTeam/openembedded,sutajiokousagi/openembedded,yyli/overo-oe,BlackPole/bp-openembedded,yyli/overo-oe,nx111/openembeded_openpli2.1_nx111,buglabs/oe-buglabs,mrchapp/arago-oe-dev,scottellis/overo-oe