PR libstdc++/81395 fix crash when write follows large read