WINDOWS: cache ispty call for #7174