Normalize root paths in metadata output (#22050)
For a root package recorded with `source = { editable = "." }`, we emit
its member path as `/project` but its source and node IDs as
`/project/`.
Resolve `.` and empty paths to the workspace root in the shared metadata
helper, so root paths use the same spelling throughout `uv workspace
metadata` and `uv tree --format json`.