Update app.lockOrientation to not recieve rotation events when locked.

Issue #583

@nukulb This fixes the issue reported by Anzor. I don't see any side effects, but you may have a better understanding of this. In particular, I'm not sure why we would ever want to track rotation events once we're locked.