Fix unwinding of C -> Haskell FFI calls with -threaded (2nd try)

Authored by niteria on May 17 2018, 10:06 AM.