Support lockfile generation for packages not installed locally