Make more syscalls interruptible.

All the tests pass, so the patch must be correct :).