I am almost sure some unknown game store in Japan has the exact tools needed to reproduce N64-sticks accurately. After the plant in Uji stopped making equipment, there is a possibility that some of it got sold off or just discarded for people to pick up.
I've seen decent spare parts on sale in various stores there before, and I'm going there again in April to look for more. Too bad the good sticks are really expensive.