Hey! What if you merely glued the hasp for the lock to the glass and to the lid? I'm pretty sure that there are a million glues to glue a metal to glass.
That way you could undo the lock, THEN easily undo the screws to remove the lid as normal.
??