Prevent possible deadlocks relating to intermixing of parallel-capable a...

...nd non-lockless class loaders

Minor, low-risk change.  No confirmed failure has been observed to date, but this way we can be sure.  The try/catch is so that the code can still run on JDK 6 in case we want to backport.