I can't be sure, but from the sound of it that's one highly plausible explanation how your device was locked into landscape mode unless you also used N9Qtweak or Unrestricted-UI but I assumed you did not dwell on those area.