PCI: Add pci_wait_for_pending() (refactor pci_wait_for_pending_transaction())