Do you have a screen protector? There is a proximity sensor just down and to the left of the speaker. Sometimes the screen protector interferes with it and thinks the phone is near your face when it's actually detecting the screen protector. The sensor is hard to see but can be seen in the right light.
Got the same problem sometimes on Ics Quat... like itll take about 3 seconds for the screen to come on