[corlib] Better conversion betwen system locale and CultureInfo. Fixes #15875
Fix some warnings caused by always_inline functions not being marked inline.