x86/PCI: split out pci_mmconfig_alloc() for code reuse