Update poetry lock file format to 2.0
This PR locks poetry files with format 2.0.

Close #710, close #711.

Supersede and duplicate (but not in fork) of:
- #711
Update poetry lock file format to 2.0: This PR locks poetry files with format 2.0.

Close #710, close #711.

Supersede and duplicate (but not in fork) of:
- #711