There was a recall several years ago for this. I was able to reshape the handle to stop the issue but before that I just used a small spring clamp on the handle to keep it locked.
Something like these
clamp come in handy around the RV for all sorts of things.