SERVER-7080 Add code to emulate backtrace()

backtrace() fills a buffer provided by the caller with addresses
constituting a stack trace.  This emulation allows the display of
addresses in Solaris 10, which can be used with addr2line to see
code locations.