Fix Windows Defender Update Failed Errors - Fix Microsoft Store App Version Mismatch Errors-Fix Windows Terminal 504 Timeout by Resetting Winsock

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.