QCamera2/HAL3: Mutex lock mBatchSize in captureResultCb

Issue: mBatchSize is updated in setHalFpsRange which is
called from processCaptureRequest thread. And it is accessed
from the callback thread without mutex protection leading
to race condition.

Fix: Mutex lock around accessing mBatchSize in the callback
thread

BUG=31399954

Change-Id: I1101d6a58ca9d5506dceec1cb45c9d878eda65f2
1 file changed