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.
Merge pull request #16 from philips/fix-waitgroups

fix(daemon): send WaitGroup by reference