Fix concurrent map access in bytespipe
Fix concurrent map access in bytespipe

When getting and returning a buffer, need to make sure to syncronize
access to the pools map.

Signed-off-by: Brian Goff <dc73d0991b982a8303e713ef531a313af77e242a@gmail.com>

dgageot/docker,amatsus/docker,raja-sami-10p/moby,stainboy/docker,jwhonce/docker,unclejack/docker,jameszhan/docker,cpuguy83/docker,gigidwan/docker,KingEmet/docker,charleswhchan/docker,afein/docker,mike1729/docker,ibuildthecloud/docker,erikstmartin/docker,pramodhkp/moby,joeuo/docker.github.io,joeuo/docker.github.io,13W/docker,Syntaxide/docker,BenHall/docker,q384566678/docker,alexisbellido/docker.github.io,denverdino/denverdino.github.io,paralin/docker,trebonian/docker,thaJeztah/docker,willmtemple/docker,eskaaren/docker,kolyshkin/moby,tklauser/docker,johnstep/moby-moby,noxiouz/docker,harche/docker,docker/docker.github.io,nalind/docker,thaJeztah/docker,sanjeo/docker,shhsu/docker,alfred-landrum/docker,diogomonica/docker,jlebon/docker,tagomoris/docker,13W/docker,jlhawn/docker,moypray/docker,dperny/docker,nawawi/docker,denverdino/denverdino.github.io,tklauser/docker,kencochrane/docker,hqhq/moby,haveatry/docker,denverdino/denverdino.github.io,ajaymdesai/docker,nghiant2710/docker,rillig/docker.github.io,cpuguy83/docker,kojiromike/docker,mixja/docker,stevvooe/docker,harche/docker,coreos/docker,naveed-jamil-tenpearls/moby,zhuguihua/docker,dsau/docker,mahak/docker,zhuguihua/docker,bearstech/moby,nalind/docker,xuxinkun/docker,portworx/docker,willmtemple/docker,DoraALin/docker,hypriot/docker,jvanz/docker,dsheets/moby,KarthikNayak/docker,kencochrane/docker,imkin/moby,dmcgowan/docker,icaoweiwei/docker,bluebreezecf/docker,Ramzec/docker,shishir-a412ed/docker,denverdino/docker.github.io,nawawi/docker,rremer/moby,londoncalling/docker.github.io,scotttlin/docker,Shopify/docker,nalind/docker,joeuo/docker.github.io,ndeloof/docker,michelvocks/docker,Syntaxide/docker,denverdino/denverdino.github.io,unclejack/docker,mahak/docker,yosifkit/docker,diogomonica/docker,konstruktoid/docker-upstream,aduermael/docker.github.io,michelvocks/docker,scotttlin/docker,srust/docker,HideoYamauchi/docker,sterchelen/docker,yasiramin10p/moby,sanscontext/docker.github.io,YuPengZTE/docker,LuisBosquez/docker.github.io,abhinavdahiya/docker,michael-holzheu/docker,mike1729/docker,shhsu/docker,bdwill/docker.github.io,tophj-ibm/docker,SvenDowideit/docker,kerneltime/docker,tmp6154/docker,phiroict/docker,maxamillion/docker,cr7pt0gr4ph7/docker,resin-io/docker,pecameron/docker,menglingwei/denverdino.github.io,justincormack/docker,miminar/docker,thtanaka/docker,joaofnfernandes/docker.github.io,whuwxl/docker,coolljt0725/docker,erikh/docker,splunk/docker,thaJeztah/docker.github.io,q384566678/docker,gdevillele/docker.github.io,ripcurld0/moby,sdurrheimer/docker,sdurrheimer/docker,tmp6154/docker,xiaods/docker,rremer/moby,containers/storage,paralin/docker,JimGalasyn/docker.github.io,unclejack/docker,joaofnfernandes/docker.github.io,zhuguihua/docker,dims/docker,aduermael/docker.github.io,portworx/docker,gschaetz/moby,YuPengZTE/docker,aduermael/docker.github.io,POLJM242/docker,bonczj/moby-json-file-logger,msabansal/docker,coreos/docker,toli/docker,flavio/docker,dims/docker,akira-baruah/docker,laijs/docker,yummypeng/docker,mixja/docker,qudongfang/docker,errordeveloper/docker,flavio/docker,nghiant2710/docker,madhanrm/docker,mikedougherty/docker,konstruktoid/docker-upstream,brahmaroutu/docker,HideoYamauchi/docker,darrenstahlmsft/docker,flavio/docker,docker-zh/docker.github.io,maxamillion/docker,kojiromike/docker,moul/docker,cyphar/docker,dgageot/docker,mstanleyjones/docker,danyalKhaliq10p/moby,pecameron/docker,ibuildthecloud/docker,menglingwei/denverdino.github.io,vdemeester/docker,konstruktoid/docker-upstream,mstanleyjones/docker,srust/docker,joeuo/docker.github.io,yosifkit/docker,toli/docker,endophage/docker,menglingwei/denverdino.github.io,gjaskiewicz/moby,jameszhan/docker,dgageot/docker,splunk/docker,shubheksha/docker.github.io,ColinHebert/docker,ffoysal/docker,AkihiroSuda/docker,shhsu/docker,AkihiroSuda/docker,cloudflare/docker,charleswhchan/docker,noironetworks/docker,estesp/docker,yongtang/docker,raja-sami-10p/moby,johnstep/docker.github.io,dnephin/docker,alexisbellido/docker.github.io,imkin/moby,stevvooe/docker,laijs/docker,mtanlee/docker,mtesselH/docker,jvanz/docker,shin-/docker.github.io,resin-io/docker,gjaskiewicz/moby,Morsicus/docker,dmcgowan/docker,yosifkit/docker,gdevillele/docker.github.io,PatrickLang/moby,gdevillele/docker.github.io,jzwlqx/denverdino.github.io,Ramzec/docker,tkopczynski/docker,michael-holzheu/docker,diogomonica/docker,errordeveloper/docker,shubheksha/docker.github.io,dperny/docker,darrenstahlmsft/moby,cpuguy83/docker,isubuz/docker,ajaymdesai/docker,jzwlqx/denverdino.github.io,sarnautov/moby,sanscontext/docker.github.io,jthelin/docker,mtanlee/docker,mahak/docker,Mokolea/docker,prertik/docker,akira-baruah/docker,bearstech/moby,justyntemme/docker,anweiss/docker.github.io,madhanrm/docker,londoncalling/docker.github.io,denverdino/denverdino.github.io,darrenstahlmsft/moby,kerneltime/docker,estesp/docker,laijs/moby,alfred-landrum/docker,Shopify/docker,gigidwan/docker,HideoYamauchi/docker,jongiddy/docker,jwhonce/docker,HuKeping/docker,sterchelen/docker,mtrmac/docker,madhanrm/docker,moby/moby,erikh/docker,KarthikNayak/docker,allencloud/docker,danyalKhaliq10p/moby,icaoweiwei/docker,jzwlqx/denverdino.github.io,xuxinkun/docker,mtesselH/docker,joaofnfernandes/docker.github.io,abhinavdahiya/docker,tophj-ibm/moby,anweiss/docker.github.io,flavio/docker,jzwlqx/denverdino.github.io,tonistiigi/docker,thtanaka/docker,gnailuy/docker,coreos/docker,erikh/docker,shubheksha/docker.github.io,catinthesky/docker,DoraALin/docker,asbjornenge/docker,Tenk42/docker,rancher/docker,djs55/docker,kunalkushwaha/docker,kolyshkin/moby,denverdino/docker.github.io,jthelin/docker,tkopczynski/docker,rillig/docker.github.io,fcrisciani/docker,docker/docker,SvenDowideit/docker,alexisbellido/docker.github.io,docker/docker.github.io,allencloud/docker,BSWANG/denverdino.github.io,sarnautov/moby,bdwill/docker.github.io,sheimi/docker,mkumatag/docker,afein/docker,splunk/docker,14rcole/docker,konstruktoid/docker-upstream,nalind/docker,hypriot/docker,brahmaroutu/docker,lixiaobing1/docker,sanjeo/docker,laijs/moby,mkumatag/docker,dccurtis/docker,coolljt0725/docker,shubheksha/docker.github.io,shishir-a412ed/docker,toli/docker,denverdino/docker.github.io,errordeveloper/docker,duglin/docker,dnephin/docker,naveed-jamil-tenpearls/moby,bearstech/moby,catinthesky/docker,JMesser81/docker,cyphar/docker,msabansal/docker,projectatomic/docker,jhorwit2/docker,BSWANG/denverdino.github.io,jlhawn/docker,msabansal/docker,docker-zh/docker.github.io,nawawi/docker,harche/docker,gjaskiewicz/moby,lixiaobing1/docker,gdevillele/docker.github.io,tklauser/docker,johnstep/docker.github.io,PatrickLang/moby,danix800/docker.github.io,sdurrheimer/docker,duglin/docker,bonczj/moby-json-file-logger,paralin/docker,DoraALin/docker,thaJeztah/docker.github.io,jongiddy/docker,coolljt0725/docker,pradipd/moby,tophj-ibm/moby,trebonian/docker,KarthikNayak/docker,medallia/docker,Ramzec/docker,pecameron/docker,rancher/docker,mikedougherty/docker,anweiss/docker.github.io,bluebreezecf/docker,konstruktoid/docker-1,stainboy/docker,Shopify/docker,thaJeztah/docker.github.io,lixiaobing10051267/docker,londoncalling/docker.github.io,trebonian/docker,xiekeyang/docker,yongtang/docker,endophage/docker,londoncalling/docker.github.io,djs55/docker,bonczj/moby-json-file-logger,docker-zh/docker.github.io,amatsus/docker,JimGalasyn/docker.github.io,alexisbellido/docker.github.io,danix800/docker.github.io,moby/moby,docker/docker.github.io,YuPengZTE/docker,johnstep/docker.github.io,xiekeyang/docker,alfred-landrum/docker,tonistiigi/docker,shin-/docker.github.io,stevvooe/docker,AkihiroSuda/docker,PatrickLang/moby,srust/docker,rremer/moby,jwhonce/docker,medallia/docker,yosifkit/docker,londoncalling/docker.github.io,Morsicus/docker,eskaaren/docker,liaoqingwei/docker,joaofnfernandes/docker.github.io,mike1729/docker,phiroict/docker,projectatomic/docker,whuwxl/docker,jhorwit2/docker,laijs/docker,JimGalasyn/docker.github.io,ibuildthecloud/docker,jzwlqx/denverdino.github.io,kolyshkin/moby,dnephin/docker,kojiromike/docker,alexisbellido/docker.github.io,sarnautov/moby,dccurtis/docker,ibuildthecloud/docker,shin-/docker.github.io,kerneltime/docker,crosbymichael/docker,tmp6154/docker,phiroict/docker,vdemeester/docker,duglin/docker,jlebon/docker,JMesser81/docker,mtrmac/docker,ndeloof/docker,jameszhan/docker,dongjoon-hyun/docker,docker-zh/docker.github.io,rhatdan/storage,darrenstahlmsft/docker,lixiaobing10051267/docker,thtanaka/docker,ibuildthecloud/docker,HuKeping/docker,crosbymichael/docker,phiroict/docker,haveatry/docker,noxiouz/docker,imkin/moby,LuisBosquez/docker.github.io,liaoqingwei/docker,danyalKhaliq10p/moby,rhatdan/docker,jlebon/docker,yongtang/docker,miminar/docker,projectatomic/docker,jongiddy/docker,anweiss/docker.github.io,gdevillele/docker.github.io,Ramzec/docker,dsau/docker,mixja/docker,scotttlin/docker,hqhq/moby,tophj-ibm/docker,Morsicus/docker,twaugh/docker,djs55/docker,sanscontext/docker.github.io,wenchma/docker,twaugh/docker,mtanlee/docker,noironetworks/docker,13W/docker,BenHall/docker,LuisBosquez/docker.github.io,xiaods/docker,icaoweiwei/docker,kunalkushwaha/docker,johnstep/docker.github.io,shishir-a412ed/docker,mohmost12/docker,ripcurld0/moby,rhatdan/docker,brahmaroutu/docker,docker/docker,charleszheng44/moby,konstruktoid/docker-1,tkopczynski/docker,cloudflare/docker,thaJeztah/docker.github.io,liaoqingwei/docker,cr7pt0gr4ph7/docker,cloudflare/docker,mgoelzer/docker,dsheets/moby,BSWANG/denverdino.github.io,nawawi/docker,jimjag/docker,phiroict/docker,cpuguy83/docker,moul/docker,docker/docker.github.io,dperny/docker,johnstep/moby-moby,gnailuy/docker,menglingwei/denverdino.github.io,kolyshkin/docker,rillig/docker.github.io,dccurtis/docker,gschaetz/moby,ajaymdesai/docker,darrenstahlmsft/moby,charleswhchan/docker,docker-zh/docker.github.io,willmtemple/docker,JMesser81/docker,qudongfang/docker,afein/docker,docker/docker,haveatry/docker,medallia/docker,ffoysal/docker,crosbymichael/docker,LuisBosquez/docker.github.io,mikebrow/docker,isubuz/docker,rhardih/docker,danix800/docker.github.io,portworx/docker,dmcgowan/docker,fcrisciani/docker,POLJM242/docker,mgoelzer/docker,mkumatag/docker,docker/docker.github.io,gnailuy/docker,erikstmartin/docker,dsheets/moby,dongjoon-hyun/docker,rancher/docker,yasiramin10p/moby,JimGalasyn/docker.github.io,nghiant2710/docker,containers/storage,yasiramin10p/moby,gigidwan/docker,sfsmithcha/docker,kencochrane/docker,tianon/docker,prertik/docker,mtesselH/docker,noironetworks/docker,tophj-ibm/docker,Tenk42/docker,bdwill/docker.github.io,michelvocks/docker,mikedougherty/docker,dongjoon-hyun/docker,mohmost12/docker,jimjag/docker,thaJeztah/docker,abhinavdahiya/docker,kolyshkin/docker,denverdino/docker.github.io,yummypeng/docker,charleszheng44/moby,amatsus/docker,ripcurld0/moby,trebonian/docker,johnstep/moby-moby,x1022as/docker,rhardih/docker,asbjornenge/docker,q384566678/docker,tagomoris/docker,KingEmet/docker,danix800/docker.github.io,qudongfang/docker,medallia/docker,BSWANG/denverdino.github.io,13W/docker,stainboy/docker,sheimi/docker,HuKeping/docker,moypray/docker,wenchma/docker,LuisBosquez/docker.github.io,mikebrow/docker,shubheksha/docker.github.io,justyntemme/docker,raja-sami-10p/moby,denverdino/docker.github.io,Mokolea/docker,xiaods/docker,ndeloof/docker,BenHall/docker,sheimi/docker,Tenk42/docker,jlhawn/docker,jimjag/docker,maxamillion/docker,isubuz/docker,darrenstahlmsft/docker,gnailuy/docker,bearstech/moby,erikstmartin/docker,prertik/docker,thaJeztah/docker.github.io,x1022as/docker,troy0820/docker.github.io,sanscontext/docker.github.io,troy0820/docker.github.io,jvanz/docker,jimjag/docker,endophage/docker,SvenDowideit/docker,pramodhkp/moby,bdwill/docker.github.io,hypriot/docker,joeuo/docker.github.io,wenchma/docker,paralin/docker,cr7pt0gr4ph7/docker,fcrisciani/docker,kunalkushwaha/docker,pradipd/moby,justincormack/docker,twaugh/docker,naveed-jamil-tenpearls/moby,lixiaobing1/docker,rillig/docker.github.io,eskaaren/docker,moul/docker,dims/docker,mtrmac/docker,thaJeztah/docker,estesp/docker,sanjeo/docker,yp-engineering/docker,troy0820/docker.github.io,mohmost12/docker,bdwill/docker.github.io,justyntemme/docker,shin-/docker.github.io,aduermael/docker.github.io,rhatdan/storage,JimGalasyn/docker.github.io,pramodhkp/moby,AkihiroSuda/docker,noxiouz/docker,vdemeester/docker,johnstep/docker.github.io,containers/storage,menglingwei/denverdino.github.io,14rcole/docker,yp-engineering/docker,michael-holzheu/docker,tonistiigi/docker,justincormack/docker,laijs/moby,Mokolea/docker,konstruktoid/docker-1,moby/moby,pradipd/moby,mstanleyjones/docker,asbjornenge/docker,charleszheng44/moby,dsau/docker,BSWANG/denverdino.github.io,xiekeyang/docker,miminar/docker,bluebreezecf/docker,mahak/docker,hqhq/moby,13W/docker,rhatdan/storage,KingEmet/docker,ColinHebert/docker,catinthesky/docker,tophj-ibm/moby,yp-engineering/docker,Mokolea/docker,moby/moby,anweiss/docker.github.io,allencloud/docker,moul/docker,lixiaobing10051267/docker,Syntaxide/docker,cyphar/docker,gschaetz/moby,tianon/docker,shin-/docker.github.io,mgoelzer/docker,x1022as/docker,sterchelen/docker,sfsmithcha/docker,tagomoris/docker,moypray/docker,whuwxl/docker,resin-io/docker,joaofnfernandes/docker.github.io,sanscontext/docker.github.io,xuxinkun/docker,jhorwit2/docker,yummypeng/docker,ColinHebert/docker,ffoysal/docker,rhatdan/docker,troy0820/docker.github.io,sfsmithcha/docker,mikebrow/docker