The gun works of Oregon has a selection of locks and lock parts. Hammers among them.
You'd have to figure out what lock is on the gun and maybe they can help you match something to it.
Things that your going to need is screw and thread size on the hammer, plus the throw. Most hammers have a square shaft hole but not all, I have a Belgian made SxS that has a hexagon hole on the hammer.