Move optional lockfile parameters into options object (#101132)
Follow-up to
https://github.com/vercel/next.js/pull/100747#discussion_r4382216429
Lots of optional parameters here (especially booleans) make it hard to
read and understand the callsites.