Revert "Removed synchronization of loadClass when jdk >=7". Thread safety was not working
properly on JDK7, need to investigate further. Reverting while investigating.

This reverts commit 17a30b3a2681821c5730e8d7bc548989eb94181e.
Removed synchronization of loadClass when jdk >=7, take 2