Delegating the value getter and setters in the ScopeRegistry to the
current ScopeRegister object.
Merge pull request #10142 from wangjohn/grouping_thread_locals

Delegating the value getter and setters in the ScopeRegistry