Make GlobalOpt be conservative with TLS variables (PR14309)