Wrap two of the top buffer-flushing syscalls.
Merge pull request #245 from cgjones/get-top-buffer-flushers

Wrap two of the top buffer-flushing syscalls.
Handle segfaults caused by jumping into garbage, and add a test.