This could be anything! Could you use the 'Comment' button below with Photos of the bolt hole AND where it is on the bike? This will give more clues as to what it is used for.
Make sure the shift pedal is tight on the shift shaft/linkage. Also make sure it's not interfering with the engine case when shifting, and adjust if needed. I doubt it's a transmission issue.