bus/pci: use memseg walk instead of iteration