There is a specific option for the lock command:
poetry lock --no-update
This makes it possible to remove a dependency from pyproject.toml and update the lock file without upgrading dependencies.
Note that this is only available since 1.1.2 (or earlier?) and that the behavior will be changed in v2.0.