jack: Add missing mutex unlock.  Found by Coverity.
jack: We were checking for zero divisors and then dividing by them anyway.  Found by Coverity.