[FreeBSD] Port sanitizers' syscalls.

Patch by Viktor Kutuzov!