Only wait for drain event on stdout when stdout would be in non-blocking mode