Implement more of the linux signal-related syscalls.

#16.  We hit these syscalls when running under valgrind, presumably in the post-fork valgrind stub.

The task.cc change is the first rr fix that came from a valgrind warning :).