Improved synchronization handling around defining classes since it appears that we cannot assume that the class loader is locked by the VM.