Apiserver race condition fix
Apiserver race condition fix

Fixes a race condition i noticed in cmd/jujud/agent running go test --race ...

perrito666/juju,perrito666/juju,AdamIsrael/juju,mhilton/juju-juju,bac/juju,howbazaar/juju,makyo/juju,bac/juju,tsakas/juju,fwereade/juju,mhilton/juju-juju,Altoros/juju-cloudsigma,cloud-green/juju,dimitern/juju,kat-co/juju,mikemccracken/juju,reedobrien/juju,marcmolla/juju,fwereade/juju,reedobrien/juju,davecheney/juju,dimitern/juju,gabriel-samfira/juju,voidspace/juju,dooferlad/juju,wwitzel3/juju,frankban/juju,dooferlad/juju,waigani/juju,mjs/juju,axw/juju,axw/juju,AdamIsrael/juju,bogdanteleaga/juju,makyo/juju,cloud-green/juju,davecheney/juju,anastasiamac/juju,voidspace/juju,kat-co/juju,tsakas/juju,dimitern/juju,alesstimec/juju,mhilton/juju,bac/juju,axw/juju,dooferlad/juju,cloud-green/juju,anastasiamac/juju,reedobrien/juju,mikemccracken/juju,bogdanteleaga/juju,mhilton/juju,perrito666/juju,reedobrien/juju,marcmolla/juju,howbazaar/juju,mjs/juju,bac/juju,marcmolla/juju,mhilton/juju-juju,Altoros/juju-cloudsigma,waigani/juju,gabriel-samfira/juju,Altoros/juju-cloudsigma,anastasiamac/juju,howbazaar/juju,bz2/juju,cloud-green/juju,makyo/juju,mhilton/juju,macgreagoir/juju,dimitern/juju,alesstimec/juju,dooferlad/juju,bogdanteleaga/juju,waigani/juju,gabriel-samfira/juju,ericsnowcurrently/juju,davecheney/juju,makyo/juju,howbazaar/juju,alesstimec/juju,wwitzel3/juju,bogdanteleaga/juju,frankban/juju,thomnico/juju,axw/juju,fwereade/juju,thomnico/juju,kat-co/juju,voidspace/juju,thomnico/juju,mhilton/juju-juju,mhilton/juju,Altoros/juju-cloudsigma,alesstimec/juju,perrito666/juju,frankban/juju,gabriel-samfira/juju,mjs/juju,AdamIsrael/juju,davecheney/juju,bz2/juju,kat-co/juju,ericsnowcurrently/juju,wwitzel3/juju,macgreagoir/juju,anastasiamac/juju,wwitzel3/juju,ericsnowcurrently/juju,AdamIsrael/juju,bz2/juju,mjs/juju,bz2/juju,bac/juju,dooferlad/juju,howbazaar/juju,macgreagoir/juju,frankban/juju,anastasiamac/juju,fwereade/juju,kat-co/juju,gabriel-samfira/juju,mikemccracken/juju,alesstimec/juju,perrito666/juju,mikemccracken/juju,mjs/juju,macgreagoir/juju,tsakas/juju,ericsnowcurrently/juju,mjs/juju,frankban/juju,ericsnowcurrently/juju,dimitern/juju,marcmolla/juju,voidspace/juju,thomnico/juju,macgreagoir/juju,mikemccracken/juju,waigani/juju,axw/juju,mjs/juju,tsakas/juju,marcmolla/juju,reedobrien/juju,bz2/juju