Windows: Refactor and consolidate afsredir invalidation