Update `lock::lock_requires_python` not to require Python 3.8 (#13780)
## Summary
Update `lock::lock_requires_python` not to require Python 3.8.
Fixes #13676
## Test Plan
`cargo test --no-default-features --features git,pypi,python` after
removing Python 3.8.