etcdserver: fix data race in retrieving self stats
etcdserver: fix race and improve stats interfaces
etcdserver: copy stats instead of marshaling with lock
etcdserver/stats: log any marshaling error
etcdserver/stats: lock on leaderstats too
Merge pull request #1319 from jonboulle/stats_race

etcdserver: fix data race in retrieving self stats