worker: flush messages written by child processes before exit
I found some child outputs were lost while testing the previous patch. Since
os._exit() does nothing special, we need to do that explicitly.
#require docutils gettext $ $TESTDIR/check-gendoc zh_CN checking for parse errors