Make sure nodes are ready before trying to join them

This should also be cherry picked into the riak/1.3 branch.