It seems like I am not the only one having this issue. KLCK prevents my phone from shutting off automatically while in the lockscreen. I have tried various things with the in app settings, but nothing worked. It did not used to do that, at least not since upgrading to Android 12. I am using a Pixel 3a XL.