I've got good news. I've changed the lockscreen to another one (the secondary default one with the slide down unlock method) and it hasn't got this annoying bug. When I switched back to the default lockscreen, the phone started to heat up. So if you do not like hot phones, just switch to another...