msm7x27a-common: camera: clean up wrapper code, fix possible memory leak

* Clean up formatting, warnings, style, etc.

Change-Id: Ie0757befa341e209e2b552b42bffee6b52d8df0a
msm7x27a-common: enable lockscreen rotation

Change-Id: Ibee755e599301979dfeff54026132125ad07ad63