add lock and unlock to shmctl