There is a chance that debris in the lid lock mechanism could prevent it from locking. Check the wire harness connections for the lid lock and switch on the main electronic control board. The lid lock/switch assembly should be looked at. If it's damaged, get a new one.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.