readline: move pause to fix #5927

Pause should be called before _setRawMode to prevent things going wonky
in windows (see #5927).

(sorry for messing up first pull request)