I had one of Hershal's rifles with this type of patchbox on it, and he used two nails with a latch attached for a head to hold the lids shut. It was just nailed into the stock with enough clearance at the upper end of the hole for the nail to allow it to move back allowing the lid to be released. Worked great.
Roger Sells