add patch discussed in karma-runner#5

this causes writes to stdout to execute synchronously so that process
won't exit before all output has been written