fix issues that Libinfo call to mDNSResponder on main thread, this may freeze the app

Warning: Libinfo call to mDNSResponder on main thread

If mqtt_connect run in main queue, will get the warning above.  If the network is bad, it will block the main thread, and then freeze the app.