[PATCH 5.10 298/381] tty: move some internal tty lock enums and functions out of tty.h