Only walk the specified number of frames in mono_backtrace_from_context.