rstp: Keep I/O outside of critical sections.