w32threads: Use newer thread synchronization functions when targeting Vista