etcdserver: init state before run loop correctly

for #1877 
fixes #1870