st-hal: Fix deadlock when load/unload merged sm while buffering

There is a deadlock because the load/unload thread can take the
st_ses lock and wait for the callback thread while the callback
thread is waiting for the st_ses lock.

Change-Id: I9828658a9f507e415c33480ea80d67811341488f
1 file changed