flush Mason cache when installing docs, related to #25944