termios: fix pid_t always, not just for tcgetsid