[pci] Add generic configuration space backup/restore facility