public static boolean containsLock(File dir) {
		File[] files = dir.listFiles();
		if (files == null)
			return false;
		for (int i = 0; i < files.length; i++) {
			if (files[i].isDirectory()) {
				if (containsLock(files[i]))
					return true;
			}
			else if (files[i].getName().endsWith(LOCK)) {
				return true;
			}
		}
		return false;
	}
@param file file whose lock state is controlled with this lock file.
@return true if any lock exists within dir for the given entity name.
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/LockFile.java