Fixed wrong return value in shmctl(IPC_RMID)