libqos/ahci: Add ahci_port_select helper