semaphore: win32 fix

Signed-off-by: Tim Blechmann <tim@klingt.org>