@Override
	public void flushProcessorContextWriteCache() {
		lock.acquire();
		try {
			super.flushProcessorContextWriteCache();
		}
		finally {
			lock.release();
		}
	}
Perform context upgrade due to a language change
@param translator language translator required by major upgrades (may be null)
@param newCompilerSpec new compiler specification
@param programMemory program memory
@param monitor task monitor
@throws CancelledException thrown if monitor cancelled
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/register/ProgramRegisterContextDB.java