fs: Fix `RealFs::open_handle` implementation for directories on windows (#40639)

Release Notes:

- Fixed worktree names not updating when renaming the root folder on
windows
1b43a632dcLukas Wirth committed on 10/19/2025, 3:25:13 PM· committed by GitHubparent8f3f723
2 files changedLine totals unavailable