Glad this has a happy ending!
I was also very lucky when this happened to me in the eighties - I pulled an allnighter on my 400-4, I think just to replace the primary chain. I was so impatient to finish that I accidently left the two M7 sprocket bolts only finger tight! I started it up at the crack of dawn and went for a test ride around the block but didn't make it very far - some alarming noises started and seconds later the engine stopped dead and wouldn't turn. I pushed it home and took the cylinder cover off to find the cam chain draped over the camshaft with no sprocket anywhere to be seen! It was down the camchain tunnel in many pieces.
I had to pull the engine completely apart again to clean out all the pieces and this time put new camchain guides & tensioner, new camchain, new sprocket obviously, new rings and I made sure I tightened the retrieved sprocket bolts properly with loctite! I thankfully didn't have to do the valves - it was only idleing when it stopped dead so I think the crankshaft and camshaft stopped turning almost simultaniously.
John