I would get 4 new fasteners (the short ones, that DO NOT use lock washers) and make sure the threads
on the transmission output flange are
clean & dry. (<--lots of suggestions here)
Hopefully you have a 10mm box-end wrench like the one that came with the bike.
Get all 4 fasteners in place and take up the slack on them.
Step on the brake pedal to keep everything from turning while you tighten them down tight.
Using that small wrench, I just give it all I have, without tipping the bike over!
I have yet to strip one out (unlikely), nor have I had one come loose.
I have NEVER used any thread locking compound here.