Make backtrace generation ignore thunks.