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

closes https://github.com/hazelcast/hazelcast/issues/4235
@ajermakovics ok your suggestion seems better to me also but how about client tests, since we are using real instances in those tests?