stats: fix data race when update leader uptime

actually, it is weird that we needs to refresh the info each time we do statitics here:
https://github.com/coreos/etcd/blob/master/etcdserver/etcdhttp/http.go#L231
what about adding a function to return json-format representation, which is used when we need to display the info?