sthal: add a check to skip client detection callback

To prevent a race condition when stop recognition is
called immediately after start recognition is done
but client detection callback is not called, add a
check in function pal_callback to invoke callback
function only when the session state is active.

Change-Id: I6f2fe264afef522a2afece128710014ea10f0be9
1 file changed