Refactor nonblock states.

Preserve nonblock state better across reinits, etc.
Try to keep vsync in RGUI.