fix crash with stacktrace on a VALGRIND build

I'm not sure why this is needed, or how to properly solve this. But it
solves a crash when the JIT is trying to kick in when HHVM has been
built in with VALGRIND=1 (on a debug build).

@ptarjan said this will make @scannell fix it the right way.