QEMU: critical bugfix for semaphore fallback code.

See https://bugs.launchpad.net/qemu/+bug/1087114