msm: synx: acquire mutex through loop index

Acquire the mutex during cleanup from the loop index
rather than the index saved in the synx object as
it could lead to potential deadlock with object
allocation.

Change-Id: I2bc84b67dd039521053f000e2d1715339789f5e1
Signed-off-by: Sumukh Hallymysore Ravindra <shallymy@codeaurora.org>
1 file changed