Print thread dump when receiving SIGUSR1