@Override
			public boolean accept(File pathname) {
				String fname = pathname.getName();
				if (fname.startsWith(mangledName) && fname.endsWith(LOCK)) {
					String s =
						fname.substring(mangledName.length(), fname.length() - LOCK.length());
					return s.indexOf('.') == 0 && s.indexOf('.', 1) < 0;
				}
				return false;
			}
@param dir directory containing lock file
@param mangledName mangled name of file or entity which this lock is associated with.
@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