Use O_NOCTTY (if available) when opening /dev/ptmx, just in case any