port-update fails when using SELECT FOR UPDATE lock
port-update fails when using SELECT FOR UPDATE lock

In Postgresql, it will throw the bellow exception when
using SELECT FOR UPDATE lock combined with outer join.
"SELECT FOR UPDATE/SHARE cannot be applied to the
 nullable side of an outer join"

The reason can refer http://www.postgresql.org/ \
message-id/21634.1160151923@sss.pgh.pa.us

for this issue, I don't think outer join is necessary，
so I change it to use inner join.

Fixes bug #1191653

Change-Id: Ifc9ecad91324ce28399431ea77fe0865b6d8e523

klmitch/neutron,kaiweifan/neutron,JianyuWang/neutron,citrix-openstack-build/neutron,miyakz1192/neutron,paninetworks/neutron,jerryz1982/neutron,ntt-sic/neutron,citrix-openstack-build/neutron,CiscoSystems/neutron,wolverineav/neutron,neoareslinux/neutron,JianyuWang/neutron,redhat-openstack/neutron,mahak/neutron,leeseuljeong/leeseulstack_neutron,dhanunjaya/neutron,Juniper/contrail-dev-neutron,eonpatapon/neutron,Comcast/neutron,alexandrucoman/vbox-neutron-agent,Juniper/contrail-dev-neutron,noironetworks/neutron,bgxavier/neutron,javaos74/neutron,aristanetworks/neutron,gkotton/neutron,takeshineshiro/neutron,SamYaple/neutron,shahbazn/neutron,rickerc/neutron_audit,yamahata/neutron,infobloxopen/neutron,adelina-t/neutron,apporc/neutron,sasukeh/neutron,vbannai/neutron,yamahata/tacker,cloudbase/neutron-virtualbox,CiscoSystems/vespa,klmitch/neutron,watonyweng/neutron,wenhuizhang/neutron,leeseulstack/openstack,bigswitch/neutron,igor-toga/local-snat,cernops/neutron,jacknjzhou/neutron,gkotton/neutron,leeseuljeong/leeseulstack_neutron,jumpojoy/neutron,Juniper/neutron,adelina-t/neutron,antonioUnina/neutron,zhhf/charging,wenhuizhang/neutron,leeseuljeong/leeseulstack_neutron,NeCTAR-RC/neutron,apporc/neutron,watonyweng/neutron,netscaler/neutron,JioCloud/neutron,ntt-sic/neutron,waltBB/neutron_read,SamYaple/neutron,CiscoSystems/neutron,vveerava/Openstack,openstack/neutron,dims/neutron,projectcalico/calico-neutron,silenci/neutron,NeCTAR-RC/neutron,mahak/neutron,rickerc/neutron_audit,aristanetworks/neutron,shahbazn/neutron,armando-migliaccio/neutron,ntt-sic/neutron,yanheven/neutron,gkotton/neutron,asgard-lab/neutron,netscaler/neutron,projectcalico/calico-neutron,Comcast/neutron,mattt416/neutron,mandeepdhami/neutron,leeseulstack/openstack,skyddv/neutron,beagles/neutron_hacking,bigswitch/neutron,zhhf/charging,alexandrucoman/vbox-neutron-agent,eayunstack/neutron,yamahata/neutron,leeseulstack/openstack,Stavitsky/neutron,sajuptpm/neutron-ipam,vijayendrabvs/hap,yanheven/neutron,gopal1cloud/neutron,sasukeh/neutron,infobloxopen/neutron,CiscoSystems/vespa,dhanunjaya/neutron,wolverineav/neutron,virtualopensystems/neutron,yuewko/neutron,kaiweifan/neutron,openstack/neutron,vveerava/Openstack,noironetworks/neutron,redhat-openstack/neutron,SmartInfrastructures/neutron,openstack/neutron,jumpojoy/neutron,huntxu/neutron,mmnelemane/neutron,cloudbase/neutron,sajuptpm/neutron-ipam,barnsnake351/neutron,cisco-openstack/neutron,vbannai/neutron,glove747/liberty-neutron,antonioUnina/neutron,rickerc/neutron_audit,armando-migliaccio/neutron,mmnelemane/neutron,rdo-management/neutron,barnsnake351/neutron,suneeth51/neutron,citrix-openstack-build/neutron,huntxu/neutron,netscaler/neutron,MaximNevrov/neutron,MaximNevrov/neutron,neoareslinux/neutron,SmartInfrastructures/neutron,armando-migliaccio/neutron,waltBB/neutron_read,Metaswitch/calico-neutron,skyddv/neutron,bgxavier/neutron,sajuptpm/neutron-ipam,vbannai/neutron,oeeagle/quantum,jerryz1982/neutron,vijayendrabvs/ssl-neutron,magic0704/neutron,Juniper/neutron,igor-toga/local-snat,magic0704/neutron,JioCloud/neutron,yamahata/tacker,javaos74/neutron,dims/neutron,swdream/neutron,kaiweifan/neutron,beagles/neutron_hacking,chitr/neutron,suneeth51/neutron,virtualopensystems/neutron,armando-migliaccio/neutron,oeeagle/quantum,swdream/neutron,Juniper/contrail-dev-neutron,CiscoSystems/neutron,Comcast/neutron,eayunstack/neutron,yuewko/neutron,gopal1cloud/neutron,Juniper/neutron,mahak/neutron,glove747/liberty-neutron,cisco-openstack/neutron,blueboxgroup/neutron,vivekanand1101/neutron,chitr/neutron,pnavarro/neutron,takeshineshiro/neutron,vijayendrabvs/hap,CiscoSystems/vespa,vijayendrabvs/ssl-neutron,sebrandon1/neutron,yamahata/neutron,eonpatapon/neutron,miyakz1192/neutron,blueboxgroup/neutron,paninetworks/neutron,asgard-lab/neutron,pnavarro/neutron,rdo-management/neutron,blueboxgroup/neutron,sebrandon1/neutron,jacknjzhou/neutron,yamahata/tacker,vijayendrabvs/hap,mandeepdhami/neutron,virtualopensystems/neutron,vveerava/Openstack,cloudbase/neutron-virtualbox,zhhf/charging,Metaswitch/calico-neutron,vivekanand1101/neutron,silenci/neutron,Stavitsky/neutron,beagles/neutron_hacking,vijayendrabvs/ssl-neutron,cernops/neutron,mattt416/neutron,cloudbase/neutron