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

closes https://github.com/hazelcast/hazelcast/issues/4235