Used to ensure that ClassPool.appendClassPath(javassist.ClassPath) is invoked within a synchronized
lock, and also handles tricky class loading issues (caused by the creation of classes, and class loaders, at
runtime).