Fix concurrency error in registry's pull-through
Fix concurrency error in registry's pull-through

Avoid the use of not thread-safe structures in the pull-through code.
The mirroring code spawns a new go-routine that needs to have its own
instances of thread-dangerous data.

Signed-off-by: Michal Minář <ea3139ea422390c9a8bd6d7fb9ba423400fabbd1@redhat.com>

imcsk8/origin,juanvallejo/origin,dcbw/origin,mdshuai/origin,nhr/origin,markllama/origin,luciddreamz/origin,wanghaoran1988/origin,hroyrh/origin,elyscape/origin,mrogers950/origin,elyscape/origin,mahak/origin,wjiangjay/origin,kargakis/origin,rajatchopra/origin,sferich888/origin,rootfs/origin,detiber/origin,rrati/origin,luciddreamz/origin,miminar/origin,linzhaoming/origin,imcsk8/origin,spadgett/origin,gabemontero/origin,linzhaoming/origin,php-coder/origin,ryanj/origin,abutcher/origin,sferich888/origin,childsb/origin,matthyx/origin,detiber/origin,hroyrh/origin,pravisankar/origin,danmcp/origin,dobbymoodge/origin,aveshagarwal/origin,pweil-/origin,danmcp/origin,luciddreamz/origin,soltysh/origin,imcsk8/origin,miminar/origin,liangxia/origin,jsafrane/origin,dgoodwin/origin,mfojtik/origin,legionus/origin,deads2k/origin,simo5/origin,spadgett/origin,mfojtik/origin,jupierce/origin,juanvallejo/origin,hferentschik/origin,tnozicka/origin,nak3/origin,sallyom/origin,php-coder/origin,mdshuai/origin,jupierce/origin,xiuwang/origin,juanvallejo/origin,markllama/origin,mrogers950/origin,PI-Victor/origin,mkumatag/origin,mdshuai/origin,nak3/origin,tnozicka/origin,liangxia/origin,sjug/origin,juanvallejo/origin,rhcarvalho/origin,danmcp/origin,hferentschik/origin,simo5/origin,dcbw/origin,rhamilto/origin,spadgett/origin,jeremyeder/origin,detiber/origin,bparees/origin,tnozicka/origin,childsb/origin,adelton/origin,sdminonne/origin,wanghaoran1988/origin,deads2k/origin,rootfs/origin,enj/origin,rootfs/origin,adelton/origin,smarterclayton/origin,enj/origin,wanghaoran1988/origin,elyscape/origin,openshift/origin,jeremyeder/origin,PI-Victor/origin,abutcher/origin,jwhonce/origin,PI-Victor/origin,luciddreamz/origin,JacobTanenbaum/origin,dinhxuanvu/origin,matthyx/origin,pmorie/origin,hferentschik/origin,spadgett/origin,rhamilto/origin,dgoodwin/origin,wjiangjay/origin,linzhaoming/origin,imcsk8/origin,markllama/origin,tnozicka/origin,smarterclayton/origin,sjug/origin,dgoodwin/origin,liggitt/origin,rrati/origin,pmorie/origin,miminar/origin,PI-Victor/origin,ravisantoshgudimetla/origin,dinhxuanvu/origin,linzhaoming/origin,ramr/origin,abutcher/origin,soltysh/origin,tnozicka/origin,ironcladlou/origin,nhr/origin,mdshuai/origin,Miciah/origin,PI-Victor/origin,raffaelespazzoli/origin,raffaelespazzoli/origin,goern/origin,bparees/origin,spadgett/origin,rootfs/origin,soltysh/origin,dobbymoodge/origin,coreydaley/origin,mrogers950/origin,pravisankar/origin,mkumatag/origin,rajatchopra/origin,dcbw/origin,csrwng/origin,wjiangjay/origin,mrogers950/origin,ironcladlou/origin,pmorie/origin,rootfs/origin,jsafrane/origin,abutcher/origin,maxamillion/origin,deads2k/origin,adelton/origin,mdshuai/origin,pweil-/origin,childsb/origin,markllama/origin,imcsk8/origin,jsafrane/origin,legionus/origin,danmcp/origin,pecameron/origin,sdminonne/origin,mfojtik/origin,jwhonce/origin,jeremyeder/origin,Miciah/origin,simo5/origin,legionus/origin,rhcarvalho/origin,ravisantoshgudimetla/origin,maxamillion/origin,ravisantoshgudimetla/origin,childsb/origin,dobbymoodge/origin,elyscape/origin,jpeeler/origin,legionus/origin,aveshagarwal/origin,luciddreamz/origin,akram/origin,csrwng/origin,sg00dwin/origin,markllama/origin,jeremyeder/origin,rajatchopra/origin,luciddreamz/origin,maxamillion/origin,goern/origin,jpeeler/origin,ryanj/origin,hferentschik/origin,jpeeler/origin,kargakis/origin,jwhonce/origin,bparees/origin,smarterclayton/origin,ingvagabund/origin,kargakis/origin,rhamilto/origin,dobbymoodge/origin,pweil-/origin,rhamilto/origin,dgoodwin/origin,tnozicka/origin,markllama/origin,rhcarvalho/origin,sg00dwin/origin,ryanj/origin,jupierce/origin,dcbw/origin,wjiangjay/origin,rrati/origin,liangxia/origin,rhcarvalho/origin,louyihua/origin,php-coder/origin,anpingli/origin,dgoodwin/origin,jupierce/origin,hferentschik/origin,openshift/origin,jim-minter/origin,rajatchopra/origin,jwhonce/origin,maxamillion/origin,nak3/origin,mahak/origin,dinhxuanvu/origin,ravisantoshgudimetla/origin,matthyx/origin,sdminonne/origin,ramr/origin,wanghaoran1988/origin,aveshagarwal/origin,liggitt/origin,miminar/origin,jpeeler/origin,louyihua/origin,juanvallejo/origin,gabemontero/origin,liangxia/origin,sallyom/origin,nhr/origin,sallyom/origin,sjug/origin,hroyrh/origin,mrogers950/origin,rrati/origin,ingvagabund/origin,simo5/origin,ramr/origin,mkumatag/origin,detiber/origin,pmorie/origin,adelton/origin,miminar/origin,rrati/origin,dobbymoodge/origin,ramr/origin,jim-minter/origin,kargakis/origin,php-coder/origin,abutcher/origin,rajatchopra/origin,liggitt/origin,wanghaoran1988/origin,louyihua/origin,jeremyeder/origin,louyihua/origin,dobbymoodge/origin,childsb/origin,matthyx/origin,php-coder/origin,liangxia/origin,louyihua/origin,imcsk8/origin,ryanj/origin,rhamilto/origin,goern/origin,jupierce/origin,hferentschik/origin,raffaelespazzoli/origin,dcbw/origin,ryanj/origin,ryanj/origin,JacobTanenbaum/origin,sferich888/origin,akram/origin,elyscape/origin,mahak/origin,goern/origin,openshift/origin,anpingli/origin,ironcladlou/origin,childsb/origin,JacobTanenbaum/origin,jwhonce/origin,kargakis/origin,ingvagabund/origin,liggitt/origin,liangxia/origin,xiuwang/origin,smarterclayton/origin,wjiangjay/origin,wjiangjay/origin,dinhxuanvu/origin,pravisankar/origin,pravisankar/origin,detiber/origin,csrwng/origin,dinhxuanvu/origin,liggitt/origin,ramr/origin,linzhaoming/origin,PI-Victor/origin,legionus/origin,kargakis/origin,pecameron/origin,liggitt/origin,jpeeler/origin,rajatchopra/origin,php-coder/origin,sg00dwin/origin,aveshagarwal/origin,rhcarvalho/origin,miminar/origin,xiuwang/origin,pmorie/origin,gabemontero/origin,coreydaley/origin,enj/origin,pravisankar/origin,mdshuai/origin,sg00dwin/origin,juanvallejo/origin,anpingli/origin,raffaelespazzoli/origin,adelton/origin,jim-minter/origin,nhr/origin,mrogers950/origin,ravisantoshgudimetla/origin,simo5/origin,Miciah/origin,akram/origin,coreydaley/origin,smarterclayton/origin,matthyx/origin,aveshagarwal/origin,nhr/origin,maxamillion/origin,pecameron/origin,jwhonce/origin