refactor: Pull reusable logic out of (Meta) lockedDependencies method into new readLockedDependenciesFromPath method.