Fix Process.state deadlock

`Process.state(s0)` resulted in a process that could never emit anything, because the ref was never set with the initial state value `s0`. (And the only other way to write to the ref was by consuming the stream first.)