fix data race in config.go. This is a hard one.