Improve symbol lookup for backtraces when debug info not present

We had all the info we were just not using it. Also adjusts the OS X
sigdie_handler to the same thing as the linux one (i.e. look at the
state of the thread before the signal handler rather than including
the signal handler in the backtrace. Fixes #7821