Clarify logging in lockutils
Clarify logging in lockutils

The old logging statements in lockutils made for some confusing log
entries where it would appear a given lock was acquired multiple
times by different threads at the same time.  See referenced bug
for details.

In order to alleviate that confusion, this change does a few things:
1) Adds an explicit "acquired" message inside the lock so it is
   clear when the lock was actually acquired.
2) Moves the release message inside the semaphore so there's no
   chance of it being logged out of order.
3) Removes the "Got semaphore" message and splits it into two
   separate messages depending on whether the semaphore was found
   in the weakref dictionary.  Making it clear which code path
   was followed should help with future debugging.

This is the Nova port of oslo-incubator change
If863c9d3896bc786f3c9c46196ebb0766e57d863

Change-Id: I530befb42a963a40e7d5bf8d4d81fc097e1cb309
Partial-Bug: #1367941

mandeepdhami/nova,openstack/nova,maelnor/nova,angdraug/nova,hanlind/nova,akash1808/nova,klmitch/nova,CEG-FYP-OpenStack/scheduler,mmnelemane/nova,affo/nova,Yusuke1987/openstack_template,j-carpentier/nova,dims/nova,isyippee/nova,ted-gould/nova,TwinkleChawla/nova,silenceli/nova,badock/nova,eayunstack/nova,klmitch/nova,cyx1231st/nova,JianyuWang/nova,BeyondTheClouds/nova,eonpatapon/nova,whitepages/nova,cernops/nova,Juniper/nova,Metaswitch/calico-nova,rajalokan/nova,raildo/nova,tudorvio/nova,dawnpower/nova,mgagne/nova,devendermishrajio/nova,double12gzh/nova,CCI-MOC/nova,blueboxgroup/nova,zzicewind/nova,edulramirez/nova,mikalstill/nova,apporc/nova,gooddata/openstack-nova,Tehsmash/nova,JioCloud/nova,yatinkumbhare/openstack-nova,belmiromoreira/nova,LoHChina/nova,mahak/nova,cernops/nova,redhat-openstack/nova,alaski/nova,tianweizhang/nova,varunarya10/nova_test_latest,redhat-openstack/nova,adelina-t/nova,devendermishrajio/nova_test_latest,adelina-t/nova,nikesh-mahalka/nova,gooddata/openstack-nova,Tehsmash/nova,takeshineshiro/nova,zzicewind/nova,hanlind/nova,sebrandon1/nova,isyippee/nova,CEG-FYP-OpenStack/scheduler,TwinkleChawla/nova,alexandrucoman/vbox-nova-driver,tianweizhang/nova,cloudbase/nova-virtualbox,LoHChina/nova,thomasem/nova,barnsnake351/nova,BeyondTheClouds/nova,thomasem/nova,zhimin711/nova,orbitfp7/nova,Stavitsky/nova,mandeepdhami/nova,akash1808/nova_test_latest,belmiromoreira/nova,shail2810/nova,edulramirez/nova,watonyweng/nova,vmturbo/nova,Yusuke1987/openstack_template,gooddata/openstack-nova,joker946/nova,Juniper/nova,phenoxim/nova,affo/nova,akash1808/nova_test_latest,cloudbase/nova,dawnpower/nova,shail2810/nova,scripnichenko/nova,tangfeixiong/nova,vladikr/nova_drafts,maelnor/nova,Metaswitch/calico-nova,JioCloud/nova_test_latest,vmturbo/nova,rajalokan/nova,mahak/nova,bgxavier/nova,JianyuWang/nova,BeyondTheClouds/nova,sebrandon1/nova,petrutlucian94/nova,CloudServer/nova,klmitch/nova,orbitfp7/nova,phenoxim/nova,vmturbo/nova,petrutlucian94/nova,klmitch/nova,noironetworks/nova,cloudbase/nova,hanlind/nova,kimjaejoong/nova,alexandrucoman/vbox-nova-driver,ted-gould/nova,projectcalico/calico-nova,iuliat/nova,joker946/nova,ruslanloman/nova,jianghuaw/nova,devendermishrajio/nova_test_latest,fnordahl/nova,Francis-Liu/animated-broccoli,Juniper/nova,rajalokan/nova,projectcalico/calico-nova,alvarolopez/nova,alvarolopez/nova,sebrandon1/nova,fnordahl/nova,j-carpentier/nova,berrange/nova,jianghuaw/nova,tangfeixiong/nova,rahulunair/nova,apporc/nova,NeCTAR-RC/nova,bgxavier/nova,zaina/nova,JioCloud/nova_test_latest,MountainWei/nova,watonyweng/nova,iuliat/nova,vmturbo/nova,kimjaejoong/nova,whitepages/nova,openstack/nova,tealover/nova,nikesh-mahalka/nova,berrange/nova,zaina/nova,barnsnake351/nova,felixma/nova,rajalokan/nova,cernops/nova,noironetworks/nova,bigswitch/nova,Stavitsky/nova,scripnichenko/nova,zhimin711/nova,varunarya10/nova_test_latest,alaski/nova,CloudServer/nova,yosshy/nova,tealover/nova,angdraug/nova,mikalstill/nova,devendermishrajio/nova,NeCTAR-RC/nova,eonpatapon/nova,mgagne/nova,CCI-MOC/nova,mikalstill/nova,akash1808/nova,ruslanloman/nova,MountainWei/nova,jeffrey4l/nova,yatinkumbhare/openstack-nova,dims/nova,bigswitch/nova,openstack/nova,badock/nova,vladikr/nova_drafts,mahak/nova,takeshineshiro/nova,double12gzh/nova,mmnelemane/nova,cloudbase/nova-virtualbox,Francis-Liu/animated-broccoli,yosshy/nova,jianghuaw/nova,raildo/nova,eayunstack/nova,rahulunair/nova,gooddata/openstack-nova,jianghuaw/nova,cloudbase/nova,tudorvio/nova,rahulunair/nova,felixma/nova,cyx1231st/nova,JioCloud/nova,silenceli/nova,Juniper/nova,blueboxgroup/nova,jeffrey4l/nova