Bluetooth: Add hci_conn_lookup_type() helper function