hal: Update the stream_in sample rate and also acquire lock for SSR

- Update the stream_in sample rate in adev_open_input_stream
  for surround sound record.
- As the ssr calls are not protected with the locks the ssr_init and ssr_deinit
  calls are coming from different threads and hence crash is seen in the ssr calls.

Change-Id: I22186a33e560a5de70a384b71910eb953fd369f0
2 files changed