vt: push the tty_lock down into the map handling