etcdserver: init state before run loop correctly

fixes #1877 
fixes #1870