cluster: Fix deadlock when reconnecting.