acpiexec: Ensure terminal state is always restored.

Fixes a problem where the original terminal state for the unix
version was restored in these cases:

acpiexec
acpiexec -v

ACPICA BZ 1104.