fixed #3868. when the singleton destoryed, the cocos thread may later than that which will cause the s_responseQueue to be nil.
Merge pull request #5482 from andyque/fix3868

fixed #3868: Possible crash on repeat running between HttpClientTest, WebSocketTest, SocketIOTest