Allow shmctl(IPC_RMID) before shmdt()