jenkinsci/remoting — pull request #8 by vjuranek (2012-11-05 12:31:38+00:00)
Title: [FIXED JENKINS-6604] Sync on loading class files to avoid LinkageError

Based on the patched proposed under JENKINS-6604. IMHO it's better to use Lock than sync on whole class. Tough maybe it would be cheaper just to catch LinkageError than locking on every call loading a class.