Print a backtrace for Thread to the stream user_error of the
calling thread. This is achieved by inserting an interrupt into
Thread using call_in_thread/2. Options:
depth(+MaxFrames)
Number of stack frames to show. Default is the current Prolog
flag backtrace_depth or 20.