[corlib] Use AppContextSwitches implementation from RS. Fixes #54448 (#4682)