new fileWatcher method passes lock for changed file back to the caller.