4.0 fix bigwrite trafficshaping

See #2945 which superseeds this one