Update `DynamicClassLoader` to load classes eagerly if they are being defined in the parent classloader. See gh-28580