`Toolchains::DumpToolchain` uses some statically initialized tables. Move them into its definition. This may avoid initializing them when not needed. Issue: #23126
Fixes #19514