Fix a problem with for loops, copy semantics and async routines.
Merge pull request #1616 from brendandburns/kubelet

Fix a problem with for loops, copy semantics and async routines.