fix broken semctl on systems that don't use IPC_64 flag