fixes #3138 . Update istatistics after operation is run and  before resp...

...onse is send to client
I am OK with only fixing the test,  since client can not ask for local map stats and order is not that crtitcal. But I still want to see one more vote before closing the pr. Anyone?