[runtime] Avoid crashes when a non-runtime thread receives a SIGQUIT.