tty: Fix ref counting for port krefs