text: Title: Bug: "Lockfile hash doesn't match pyproject.toml, packages may be outdated" warning in pdm
  Body: ### Description
  
  When running `pdm install` on `litestar` repo you get:
  
  ```
  Run pdm install -G:all
  WARNING: Lockfile is generated on an older version of PDM
  WARNING: Lockfile hash doesn't match pyproject.toml, packages may be outdated
  Updating the lock file...
  ```
  
  Link: https://github.com/litestar-org/litestar/actions/runs/11290808586/job/31403420888?pr=3784#step:5:13
  
  I don't think that this is correct.
  
  ### URL to code causing the issue
  
  _No response_
  
  ### MCVE
  
  _No response_
  
  ### Steps to reproduce
  
  ```bash
  1. Run `pdm install` on clean repo with no `venv`
  ```
  
  
  ### Screenshots
  
  _No response_
  
  ### Logs
  
  _No response_
  
  ### Litestar Version
  
  `main`
  
  ### Platform
  
  - [X] Linux
  - [X] Mac
  - [X] Windows
  - [ ] Other (Please specify in the description above)