Fix race condition in JobStatusCache access
Fix race condition in JobStatusCache access

The goroutine `Daemon#Loop()` as well as the `TestDaemon_JobStatusWithNoCache`
access both the `d.JobStatusCache`. The daemon's Loop needs to be
stopped before the variable can be modified.

weaveworks/flux,weaveworks/flux