better synchronization in cluster.UpdateNodes

Signed-off-by: Victor Vieux <vieux@docker.com>