Moved shm table semaphore out of shm table structure. Added trace utility code from M.T.