new method to test if a particular file is or is related to the target of a lock