Use one lock for DispatchThread mutable variables

Previously this file included code that used a variable to type
Boolean to synchronize upon, but the object referenced by the variable
changes when the value is toggled from false to true so the
synchronization was incorrect. This is because Boolean objects are not
mutable.

Bug: N/A
Test: Treehugger
Change-Id: Ib9c48d41eb198120a8d0cc956516d4656e104182
1 file changed
tree: ac83cd2c71b62573b2aa6b10054104c840545444
  1. camera2/
  2. common/
  3. framesequence/
  4. photoviewer/
  5. widget/
  6. CleanSpec.mk
  7. OWNERS