How to lock screen on suspend?

I have been facing the same issue for some time now. Suspend always locked my screen at first, but suddenly it stopped happening.

I opened a thread here a while ago but didn’t get any info.

It’s probably related to an update that’s caused this to happen, since it was fine at first.