Use new OS checks in src (#40520)
* use new OperatingSystem APIs in System.Net.Ping and remove dependency from System.Runtime.InteropServices.RuntimeInformation
* use new OperatingSystem APIs in System.Security.Cryptography.Algorithms
* use new OperatingSystem APIs in System.ComponentModel.Composition and improve perf..
* use new OperatingSystem APIs in System.Net.Http and remove dependency from System.Runtime.InteropServices.RuntimeInformation
* Apply suggestions from code review
* there is no need to cache the results anymore