Fix unwinding of C -> Haskell FFI calls with -threaded