diag: dci: Add new Logs and Events API for DCI

Diag Consumer Interface now has new APIs for disabling all logs and
events and also to query the log codes and event IDs for a
particular client. Fixed issues in Diag Driver where memory was not
freed up in error conditions and a mutex was released incorrectly.
Also added mutexes at places where DCI Health Statistics members
are modified.

Change-Id: I6da13487782b77c72edc93106165cd9c3d9682d9
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
6 files changed