It’s known as a ‘Spring barb lock’ as the key when inserted compresses springs to allow the bolt to be withdrawn. Commonly made (even today) in India and China to that same design as 100’s of years ago and as a consequence impossible to date accurately.
I seem to recall seeing an animation of the function somewhere, I’ll see if I can track it down.