workaround for some tests where race codition causes erl output to not flush