[`ruff`] Add `os-path-commonprefix` (`RUF071`) (#23814)
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:
- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
requests.)
- Does this pull request include references to any relevant issues?
-->
## Summary
Adds a new rule os-path-commonprefix (RUF071) that detects calls to
os.path.commonprefix(), which performs character-by-character string
comparison instead of path-component comparison — a well-known footgun.
os.path.commonpath() is the correct alternative.
## Test Plan
cargo nextest run -p ruff_linter -- rule_ospathcommonprefix
Closes #22981
---------
Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>