Fix re-writing of state dump on every poll

We were writing out the state on every poll except no faster than
once a second. The strace looked like one of Dave Jones' "userland
sucks" exhibits.