Fixed a race condition in the button logic: the semaphore/boolean
"handlingClick" was being checked within the Runnable for each button,
but this Runnable could be delayed if animations are enabled - meaning
that if the user taps the 'capture' button quickly, they may be able to
dispatch another photo capture because the semaphore is released while
the animation occurs and before the Runnable has checked it.