Allow the icu native code to be linked out when invariant globalization is enabled. (#48120)
* Disable the dynamic loading of icu functions on WASM.
* Preserve GetICUVersion using a DynamicDependency attribute so its only preserved for the tests which need it.
* Add GetICUVersion to .LibraryBuild.xml so its retained during the class libs build.
* Set InvariantGlobalization based on WasmInvariantGlobalization.
* Fix the framework build.
* Avoid linking in the libicu libraries on wasm in invariant mode.
* Move ICU tests dependency to libraries build descriptor file
* Hook up the shared file in the build
* Fix conditionals.
* Remove WasmInvariantGlobalization msbuild variable.
Co-authored-by: Marek Safar <marek.safar@gmail.com>