Check for isAgent() outside the network lock to avoid deadlocks
Check for isAgent() outside the network lock to avoid deadlocks

Signed-off-by: Madhu Venugopal <d22477479bbf55ba62bd822f4112c80f292c7805@docker.com>

cpuguy83/docker,konstruktoid/docker-upstream,Ramzec/docker,nawawi/docker,yosifkit/docker,Ramzec/docker,moby/moby,konstruktoid/docker-upstream,flavio/docker,nawawi/docker,trebonian/docker,Mokolea/docker,gnailuy/docker,vdemeester/docker,moby/moby,cpuguy83/docker,jameszhan/docker,gnailuy/docker,moul/docker,jthelin/docker,cpuguy83/docker,flavio/docker,AkihiroSuda/docker,trebonian/docker,bearstech/moby,jimjag/docker,jthelin/docker,bearstech/moby,nalind/docker,nalind/docker,nawawi/docker,jimjag/docker,konstruktoid/docker-upstream,gnailuy/docker,docker/docker,paralin/docker,jameszhan/docker,mahak/docker,nalind/docker,paralin/docker,AkihiroSuda/docker,docker/docker,nalind/docker,yosifkit/docker,flavio/docker,cpuguy83/docker,mahak/docker,jimjag/docker,Mokolea/docker,thaJeztah/docker,trebonian/docker,jameszhan/docker,djs55/docker,yosifkit/docker,flavio/docker,Ramzec/docker,moul/docker,thaJeztah/docker,thaJeztah/docker,nawawi/docker,djs55/docker,yosifkit/docker,Ramzec/docker,AkihiroSuda/docker,bearstech/moby,mahak/docker,trebonian/docker,vdemeester/docker,jimjag/docker,bearstech/moby,mahak/docker,docker/docker,moul/docker,djs55/docker,thaJeztah/docker,paralin/docker,konstruktoid/docker-upstream,Mokolea/docker,moby/moby,vdemeester/docker,AkihiroSuda/docker,moul/docker,Mokolea/docker,moby/moby,gnailuy/docker,paralin/docker