LPS-37913 Refactor ClassLoaderUtil to avoid PrivilegedAction whenever po...

...ssible