Support for update_lockfile command line option

This PR supports the update_lockfile command line option to avoid lockfile updating. This is useful when installing and excluding some groups for installing them.