Make stats_event write function parameters const
am: 6d5a2fc44d

Change-Id: I05f926f13476b8c87a46f945d3d2d7e7e9dc7aef