Uses `flush` after every write if the stdio it is not synchronized. Closes: https://github.com/puma/puma/issues/1948 Co-authored-by: Nate Berkopec <nate.berkopec@gmail.com>