Hummbug, have you got a manual. The picture of the cutaway engine at the start of the Engine section will help...also the exploded view of the kick-starter in the appropriate section. I just took apart two CB500 engines to get one good one for my project. I am new to motorcycle transmissions, so you experts can correct me at will.
The kick starter pinion is always engaged to a cog on the trans output shaft(does not turn the chain sprocket because you are in neutral). When you step on the kick start lever, you pull the k/s rachet to the right (towards your foot) and its teeth engage the teeth on the pinion, turning the engine over through the gears of the trans. These are theoretically one-way teeth...they will only engage in the correct direction...if you keep the lever down after starting, you hear the teeth bumping over each other like most rachets. When you raise your foot the spring on the k/s shaft pushes the rachet away from the pinion. EVEN if the rachet stayed engaged for some reason, you would just hear the annoying rachet noise, it shouldn't overcome the lever return spring and rotate the shaft. Apparently, in your case, something came loose all of a sudden and jammed the rachet into the pinion teeth, and it would immediately grab the shaft and flip the lever aft like yours did. With the lever off, and if you still have the kick start rachet engaged(jammed), the shaft should rotate with engine turning over(clutch engaged)...that pinion is always turning if the motor is turing and the clutch is engaged. Maybe a gear tooth, or piece of something broke free and jammed something. Of course you can't get to the k/s internals without breaking the engine case. I guess you can do it without upsetting the head and cylinders. (upside-down) Not sure if most mechanics recommend that. Again, I am new at this...would like to hear other opinions. Glad you stayed upright, and good luck. Kirby