Fix data race in kubelet fake_docker_client

Move to top of function