Update the lockfile when deps are modified

Closes #314