etcdserver: update stats when become leader