[PATCH 05/12] util: manually set dirp to NULL after closing in virCapabilitiesInitCache()