fix(terraform): avoid data race on global getter.Getters in remote module resolver (#10843)