Fix segfault

The problem was that the callback invoked was already dead
because the lambda used & rather than =.

Fix this by using =.

Also remove the #if 0 guard I previously used to isolate
the issue and get the hang of it.

Spotted thanks to Valgrind <3.