pcie: remove mmconfig memory leak and wrap mmconfig update with transaction