It’s obvious that the sear nose is not maneuvering the fly to prevent catching in the halfcock notch, which is the fly’s purpose. To get a better understanding of how that works,remove the mainspring with everything else in place,then slowly operate the lock while observing how the nose of the sear pushes the fly forward to block the notch in the tumbler. Then, when you pull the cock back it will drag the fly rearward to allow access to the notch again. With that, when you install the lock in the gun something is rubbing somewhere to prevent the proper operation of the fly. Also, if the lock works out of the gun,but not in the gun that is almost proof it’s rubbing when you tighten the lock bolts. These places can be hard to find sometimes. Put inletting black on everything ( this is where candle smoke works good because it’s thin.) operate the lock and remove it carefully to see where it was rubbed off the lock.