My driver's side door occasionally doesn't lock, but all the others do.
AFAIK, there isn't a cure, it's just being difficult.
Once they're locked, they shouldn't spontaneously unlock again.
I now lock it when I'm standing next to the car and I can tell by the sound if it's fully locked up or not, and I usually check all the locks too just in case.