QEMU: critical bugfix for semaphore fallback code.

Closes #17041.

Signed-off-by: Austin Seipp <mad.one@gmail.com>
Closes #17041.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>