work around wrong kernel type for sem_nsems member of struct semid_ds