Yeah.. that's an issue that's been hoggin OP2 and now OP3. I think OP Devs will include a fix to check proximity sensor before unlock or have a 'pocket mode', perhaps.
For the time being, keep the phone in your pocket such that the screen faces outside.