Merge fix from AFNetworking that prevents intermittent failure of uploads

Sometimes the output stream in a bonded stream pair sends the has space available
event before the input stream is finished opening. Work around this by replaying
the speace available event after a delay.