Fork自 taosdata / TDengine
fix a few minor bugs
change the mutex in connection cache to home made lock