msm: camera: sync: Fix for concurrent sync wait and destroy

Fix for concurrent sync wait and destroy.
Issue: Here the problem arises when destroy is called after wait high
timeout value. Destroy cleans the completion structure.
This causes panic in wait_for_completion function.

Fix: This fix introduces deferred destroy mechanism, which will solve
above problem.

CRs-Fixed: 3155196
Change-Id: I66f60b6d86cfd7f5d31adacdc5796bc00a6dad56
Signed-off-by: Nirmal Abraham <quic_c_nabrah@quicinc.com>
4 files changed