Flush stdout after printing stats and make stats print even with small pcaps at high rates