QS: Fix on tablets at first boot up wrong orientation detection if landscape

on tablets where it is possible to boot up in landscape no configuration
change is triggered hence we cannot read the current orientation. Workaround this
problem and read on first bootup the screen size out

Fixes: http://forum.xda-developers.com/showpost.php?p=48768480&postcount=372

Change-Id: I816ae80beaa26b8de0e929017273ebee4e44cab9
    fb: after fixing the root cause remove implemented lock

    after the root cause of the before triggered problems on
    recreation was fixed with this commit

    https://github.com/SlimRoms/frameworks_base/commit/36b309f4ecc38fdd0a06bac7cfd67965b3f1f447

    we can roll back the lock changes we did which had as well some unwanted
    side effects.

    Change-Id: I138068ffe0a688cef6cc0bdbe2b581b492e0b795

Change-Id: I6bd23b56a1f5e274749a7996e987c5c0fabf2aba
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Add back IME features (thanks to SlimRoms)