Add volatile to avoid clang optimization.

BUG: 18108178
Change-Id: Ie5b8b1808fcf6d1eacc14a7c6ac0c8d49641fec2
Merge "Add volatile to avoid clang optimization."