Extension studs are like these, but have the 3.5MM thread on them to screw into the box. If needs be you can just keep adding and adding them togetherStandard machine screws should be available off the shelf up to at least 100mm. For really long screws I've use extension nuts (sometimes called coupling nuts as well) and threaded rod in the past. When they're really long they become a pain to find the thread though.
View attachment 10345
surprised they aint concreted the boxes over. bloody muppets.

I know the things you mean, we use exactly the same thing in nylon for PCB mounts. I haven't seen them in steel but I'll keep an eye out for them, they're very handy.Extension studs are like these, but have the 3.5MM thread on them to screw into the box. If needs be you can just keep adding and adding them together