cluster: Fix reconnect bug.
cluster: Fix another reconnect bug.
ido: Fix initialization order bug.
ThreadPool: Add missing lock.