This allows us to better diagnose free() and realloc() with a bad
pointer, instead of SIGSEGV.
I'm somewhat worried about the performance implications of this. IsAccessibleMemoryRange is a syscall after all, not sure it would be nice to call it on every malloc/free. We do run non-trivial operations on these calls though, like collecting stack traces.