Enforce max nr of attemps in wait_for_cluster_state