I've never seen one in real life but I think there is a tension spring inside between those 2 posts?
M12x1 tap doesn't seem to be quite as common as coarser M12, threads but they are out there.
Unfortunately 0.5" dia is just a bit too big (12.7mm), would have been nice if you could just drill & re-tap