Codeplex #6449 - Resolve Deadlock by enforcing lock order.
If ClassHierarchyLock and ModuleCacheLock are both required, the hierarchy lock must always come first