pci: fix resource release when unmapping