Is it OK that my circuit breaker panel does not latch closed
You should be able to replace the latch

Try using a GE TDL106 to replace the broken latch on your panel, although it's not a Code violation, simply annoying to have the door on a NEMA 1 (indoor) panel floating loose like that.  (Some smaller panels lack a door, even.)