Prior to this commit, the loadFactoryNames() and loadFactories() methods in SpringFactoriesLoader effectively used a different default ClassLoader. This commit ensures that the ClassLoader for SpringFactoriesLoader.class is now consistently used as the default ClassLoader. Closes gh-24992