turnip: rework streamout state and add missing counter buffer read/writes