[3.2] Use Config created when creating Hazelcast instance

backport of #3095 to maintenance-3.x branch