Consider a null ClassLoader (typically the bootstrap CL) as cache-safe

Issue: SPR-11606