stats: fix data race when update leader uptime

only when we need to publish it here:
https://github.com/coreos/etcd/blob/master/etcdserver/etcdhttp/http.go#L185