Implement SYS_pause.

Resolves #938.