msm: camera: Fix locking in msm_close

Change-Id: Id832a967f5f790a93102b7761285012d5231de7a
sec_debug: Forward-port SEC_DEBUG feature from Samsung

 * Forward port, fix warnings, fix ifdefs.
 * Very useful for debugging hard problems, no impact when disabled.
 * Also required to get correct ramdumps.

Change-Id: I375e0dcce83b717e5f1228925d7269c5197b2016
M2: sound: fix static on speaker enable/disable

Rapid speaker enable/disable is causing a loud static POP.
Can be replicated by enabling "Touch Sounds" and playing music through Apollo.

Speaker enable/disable delay sequence as in msm8960.c

Change-Id: If1772a80da8ac2d06bb39ad4766bf92089081338