How many miles on the bike? I also would look for cooling system problems. You tried the cap. I also find that the symptoms of a leaking water pump (much more common than head gasket failure) are best detected by removing the clutch cover. I'd bet a beer or 2 that the WP is the problem....
KTMs--300, 518, 990