msm: camera: isp: Fix few stability issues and add logs

Added protection for array out of bounds in buf_done_fail_log.
Fixed active_cnt by decrementing it correctly. Without the active_cnt
fix, rdi only context can see random freeze. Added some debug
logs that can be enabled when needed to get useful information. Fix
the irq mask being subscribed for in camif. Change sync_mode in csid
acquire from Master to None. With Master, crop is enabled and it
causes errors due to unavailability of correct cropping information.

Change-Id: Ibeadc6fbb2509307d7b8f543bef5f5cd05dae434
Signed-off-by: Harsh Shah <harshs@codeaurora.org>
7 files changed