Fixed deadlock in initialization code for the cluster