usb: typec: fix use after free in typec_register_port()