There was a time when I needed such a model, but I couldn't find it in the 3d model databases. Now I designed it myself and I'm posting it here. Of course, unlike the industrial version, where metal parts are used, everything (except the spring) is made of plastic, but maybe in this form my model will be useful to someone.
The photos showing the location of the parts in the slicer mean that I printed and tested them that way. I can't guarantee how well and correctly it will work if you arrange them in a different way.
All other parts of the project were printed without support.
Depending on your skills and the print quality of your printer, I've added two Lock Bolt models, 4 mm and 3.8mm. Choose the right one for yourself.
I used PETG plastic. I haven't tested it with other plastics.
I recommend oiling the rubbing parts, although the lock works without lubrication.
It may be necessary to adjust the dimensions by grinding.
I made a marking stencil just in case, but I didn't check how convenient it was to use it.
The author marked this model as their own original creation.