getty: add O_NONBLOCK to open which is used to drop ctty