Un-freeze rotation only when running on device.

Better fix for https://github.com/appium/appium/issues/1280.