[MERGE #4947 @jackhorton] Revert part of #4927 for Intl-WinGlob
[MERGE #4947 @jackhorton] Revert part of #4927 for Intl-WinGlob

Merge pull request #4947 from jackhorton:revert-localecompare-opt

Fixes a ~5000% regression in CDjs for Intl-WinGlob

Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore