Global lock on code generation.