emulation: Fix cursor position when entering restricted scroll with origin

This fixes vttest's "Origin mode test" (under "screen features").