AMA MX: Dungey puts KTM atop podium at Thunder Valley