Add @generated annotation to lockfile (ref PR 2210)