Use backtrace_exclusion_patterns when available to silence deprecation warnings