[screenlock] Fix warning logic error, avoid log spamming