Only force a refresh of the metadata rather than invalidating the cache as that causes a crash if file system browsing is enabled.

Refs #12052
(cherry picked from commit d7bee2a3cca4a76feade96a29094a3eb3affb23b)