use sigprocmask if `_PTHREAD` is not defined
add watchdog support to `backtrace`