I checked some config files to see if this can be disabled through
configuration, but couldn't find it. Is there some config which can
disable registering these classloader MBeans?
You need to find who sets MBeanServer to org.jboss.classloader.spi.ClassLoaderSystem.
As this is what then triggers all the CL MBean registration.