worktree: Prevent background scanner from trying to scan file worktrees (#39277)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
86322a186fLukas Wirth committed on 10/3/2025, 1:12:24 PM· committed by GitHubparent1b94d74
3 files changedLine totals unavailable