I've had a day or two where mine didn't seem to want to lock. I moved it a few inches either way, turned the radio off and on, and then it always came back. Other than that, no clue.
It had been working in its current location since may of last year (when it got installed in my current vehicle). Maybe the sun got to it from it being at the windshield.