Fixes possible OOM due to the not processing of write-behind queues on backup nodes

Also fixes https://github.com/hazelcast/hazelcast/issues/3509