Nice nail smallpatch, good job. A wee bit thinner and it ought to function as your latch. It won't move much, just enough to allow the lid to shut and open. Polish the underside of the lip of the patchbox so it will slide over the nail head on the way to closing.
dave