Use g_print to dump threads when SIGQUIT is sent to Mono (#8385)