https://law.justia.com/codes/california/code-pen/part-6/titl...
I'm not sure even one such machine exists. Some companies market benchtop or small lathes as "gun lathes" but that is marketing fluff not a technical description. Any lathe can be used to make weapons. They have tons of round parts and parts with drilled holes. So does everything else that gets manufactured.
I am not aware of any machine tool company that manufactures lathes, mills, etc explicitly designed just for manufacturing firearms.
So in that sense the law you reference is typical of performative legislation. You have angry idiots pestering you to Do Something(TM). So you pass a do-nothing bill. You get to say you banned a thing that never existed. Meanwhile it doesn't hurt or bother anyone because it applies to no one. That's the best of both worlds! Do nothing while looking busy! Take action without actually hurting anyone.
Is it silly? Yes. But I'd rather they do stuff like that then actually try to regulate 3d printers.