Update semaphores to use timeout. Add more support for ACPICA.