pci_devices: unref things after use