Am I the only one who realises (and appreciates) the fact that if you hit whichever key in the first second after hitting the power button, the computer doesn't go to sleep? It's actually a very thoughtful feature, it surprises me that no one at all mentioned it.
I can't reproduce what you say so I assume that you have disabled the password lock of Mac OS and because of the speed of your macbook it seems as if it doesn't go to sleep and then come back even though it does. When I do what you say I get confronted with the lock screen after things like music stopping and the mac going to sleep for a split second.
I cannot reproduce this.
However, if I press the power button for a very brief delay, it will not go to sleep. If I leave it pressed slightly longer, it goes to sleep.