Convert _{store,restore}_cursor_pos to static inlines.