etcdserver: fix data race in retrieving self stats

@unihorn thoughts?
supersedes #1315, #1313
Yeah, definitely... I was trying to do the bare minimum change and just copy the code across, but apparently that wasn't a great idea.