Camera: Fix race condition in snapshot.

Change-Id: I917994f3bb4663eb33ffa2c76754947f70f3cd5e
Bug: 13620972