Make the foldl block on threshold.

Rewrite the foldl in terms of a threshold read operation on a strict
inflation from current state.