Merge pull request #4629 from neithernut/enhance-glob-perf refdb_fs: enhance performance of globbing