Added synchronization for validation and jvm types loading