fix(daemon): send WaitGroup by reference

The WaitGroup needs to be passed by reference otherwise Done() won't decrement
the WaitGroup that we are actually waiting on.

/cc @jonboulle