Fixed ioctl(2) to fail in ENOTTY when a given file descriptor is a slave
one.

isatty(3) uses this system call. A slave file descriptor is not tty
in any cases.