compat_ioctl: add compat handler for TIOCGSID ioctl