ptrace/collector: Refactor engine implementation to always call wait()

I hope this will fix a tricky multi-process race, but we'll see.

One unit test has been disabled because of this...