Lock compositor while rotating arc window in tablet mode

* This locks the compositor and prevent updating while waiting for the rotated frame.
* Timeout is currently a bit longer than I deal because Android seems to generate
  unnecessary frames that uses old bounds. I'll look into the issue separately.

Bug: b/62140863
TBR: reveman@chromium.org
Test: Manual.
1) Apply Android side patch: https://googleplex-android-review.git.corp.google.com/#/c/2548263/
2) Login & start ARC++ app that can rotate
3) Switch to tablet mode and tilt the device.

(cherry picked from commit d431d1dc0e5c027cad94957c82cb7baab8d16b54)

Change-Id: Ifb1427365cc524d69cf3b84c446fe108ca9e7a46
Reviewed-on: https://chromium-review.googlesource.com/572391
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: David Reveman <reveman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#491638}
Reviewed-on: https://chromium-review.googlesource.com/603002
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/branch-heads/3163@{#338}
Cr-Branched-From: ff259bab28b35d242e10186cd63af7ed404fae0d-refs/heads/master@{#488528}
8 files changed