fix: Validate turbo version from lockfile for all package managers
Extends the semver validation fix from #11546 to Berry (Yarn 2+), Bun,
pnpm, and Yarn 1 lockfiles. The original fix only covered npm, but the
same vulnerability existed in all other package manager lockfile parsers.
When TURBO_DOWNLOAD_LOCAL_ENABLED=1 is set, the turbo version extracted
from lockfiles is passed to package manager commands. Without validation,
malicious version strings could potentially be used for RCE.
This change validates that the version is a valid semver string before
returning it from turbo_version() for all lockfile types.
fix: Add allowComments and allowTrailingCommas to schema generator
The Rust schema generator now adds these JSONC properties so CI
regeneration won't overwrite manually-added entries.