QCamera2: Syncs snapshot done state events

- Snapshot done events have to be processed
  in synchronous fashion. If this is not the
  case, then a race condition can occur between
  camera client which receives a data callback
  and tries to trigger another capture and the
  state machine, which has yet to begin processing
  the queued snapshot done event.

Change-Id: Id0acd7e58fa360413ab4f76605b821903ba24277
4 files changed