hello there
yeah so i was experiencing this like for the past one week on my dads moto g(3rd gen).
after repeatedly clicking the time and changing all the settings related to locking, nothing worked .
so basically you just have to restart your phone. i did this while charging i powered it off...