tty: Replace ldisc locking with ldisc_sem