[TIMOB-17036] iOS: HTTPClient state machine fixes

Test is in [JIRA](https://jira.appcelerator.org/browse/TIMOB-17036)

Also fixes 
[TIMOB-17062](https://jira.appcelerator.org/browse/TIMOB-17062)
[TIMOB-17057](https://jira.appcelerator.org/browse/TIMOB-17057)