unit tests: handle double fork on upstart system

This is a fix from upstream, see https://github.com/buildbot/buildbot/pull/1173