[tests] Force tests to print thread dumps when they time out.