vlib: add functions to dynamically open/close PCI device