Updating lockfile and caching the modules