add locking around shm->do32bit / syscallno accesses