HHH-7994 Improve OsgiClassLoader performance