s3/lib: add log_panic_action()
Can be used to log a nice stack backtrace with full debug symbols by setting "panic action" to something like
panic action = cd /home/slow/git/samba/master && /home/slow/git/samba/master/selftest/gdb_backtrace %d
This is similar to log_stack_trace(), but that doesn't come with debug symbols.