Never seen any m3 nuts other than those with a 5.5mm hex (the 4-40 you are referring to are 3/16 hence 4.7625mm) . But if it's the height you are after, there are some possibilities for low profile m3 locknuts.
http://www.rccarshop.co.uk/index.php...w-profile.html