camera: Fix camera crashing when bashing shutter

Prevents the picture thread from being restarted or freezing
when it is already started, or when auto-focus is being
done.
Prevents gallery crash.

Change-Id: Ib540f2a47423778b45dfc8df440e33b2ac254ae8
Merge branch 'cyanogenmod' into cm-10.2