static lock for module classloaders