@Override
	public ReturnParameterDB getReturn() {
		validate(manager.lock);
		FunctionDB localThunkFunc = thunkedFunction;
		if (localThunkFunc != null) {
			return localThunkFunc.getReturn();
		}
		ReturnParameterDB rp = returnParam;
		if (rp != null) {
			return rp;
		}
		manager.lock.acquire();
		try {
			// NOTE: lock required to avoid returning null returnParam
			loadVariables();
			return returnParam;
		}
		finally {
			manager.lock.release();
		}
	}
Use of stack frame to compute parameter ordinals and validate stack offsets
should not be done while <code>validateEnabled</code> is false.  This may be
necessary during a language upgrade in which case a dummy compiler-spec
may be in-use.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionDB.java