I've read in other threads that this is due to the active notification "prompting" for the unlock in a popup style window, versus you turning the screen on and entering the PIN without executive a task like going to the app in question.
I don't believe there is a way to change it except for pushing the power button instead of swiping the active display.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?