add file lock to promise one instance for a path