lock on thread pointer
don't call reconnect() in an AsyncTask.