Wait for safe state for only nodes which used in the test

closes https://github.com/hazelcast/hazelcast/issues/4235
Ideally client tests shouldn't be using real instances and should be refactored to use the mock network. Right now none of them seem to be using `waitAllForSafeState` but if they did there's the static `waitClusterForSafeState(instance)`.