ACPICA: Fix mutex debug code for wrong loop termination value