Well if you don't want to buy a tap from above link (providing the link work)
A no.6 unc is just over 3.5mm in diameter, the next size up a 4 will not work as it will be too slack,
Drill and tap for a 5 mm Yes but forgive for i have sinned, I have re-consulted with the gods and 5/16" is just over 7.9mm not 8. So just be careful with the length as you stand chance of screwing your solenoid.
A no.6 unc is just over 3.5mm in diameter, the next size up a 4 will not work as it will be too slack,
Drill and tap for a 5 mm Yes but forgive for i have sinned, I have re-consulted with the gods and 5/16" is just over 7.9mm not 8. So just be careful with the length as you stand chance of screwing your solenoid.