Set the input stream as non-blocking

This avoids the deadlock when mch_exit kills the event loop