Client.getPass: catch syserror inval when detecting non-tty use