Make gbacktrace use lldb on macOS
Tweaked by Philip Withnall withnall@endlessm.com to fix review issues.
Closes #1004 (closed)
Note, this is just an updated version of Kristian’s patch, and I have not tested it. (I don’t have access to a macOS machine.)