Backport : Cache avg put time calculation

Backport: https://github.com/hazelcast/hazelcast/pull/4030