lib: Flush test output on FORK_OR_VFORK()

This change is follow up for the tst_fork() change.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>