A watcher that started outside a repository caches, per directory, that no
`.git` encloses it. After `git init` the explicit reload invalidated that
cache from `/`, which is no ancestor of `C:\...`, so on Windows the stale
entries stayed and `.git/info/exclude` / `.gitignore` entries written right
after were not applied to listings until a file event arrived. Invalidate
from the watch root's topmost ancestor instead.
Also stop opening a directory as a plain file in the Python library index
test: Windows refuses that without backup semantics; the mtime bump is only
needed for coarse Unix file system clocks.