shared memory locked, unlocked and removed after use.