ST-HAL: hold st session mutex until callback is done

If PAL sends a callback to client, at the same time stop
recognition is started and session lock is acquired by
stop's thread, then callback thread will wait for stop
thread, and after stop, model state at framework will be
INACTIVE, and then callback will land at framework with
wrong model state, causing HAL restart triggered.

Now, we hold st session mutex during callback to avoid
ST framework getting event with model state as INACTIVE.

Change-Id: I99a82f372fd6c8b09d50a4c6d3cf6a0b41212bf6
2 files changed