Backport for https://github.com/hazelcast/hazelcast/pull/18696
Note to reviewer: I had to adapt the changes in test classes myself while cherrypicking. I suggest to look at into these test classes while reviewing. I also didn't get that backported pr's map proxy change, but it wasn't crucial anyway.
Backport for https://github.com/hazelcast/hazelcast/pull/18696 Note to reviewer: I had to adapt the changes in test classes myself while cherrypicking. I suggest to look at into these test classes while reviewing. I also didn't get that backported pr's map proxy change, but it wasn't crucial anyway.
Fixes hazelcast/hazelcast-jet#3046