runner: fixed case revealed by the runner_stress_test where postTerminate
would be invoked twice due to stdInSink not being reset when a wakeup event is
being handled