modified shmem lock related routines, although tests are failing at release lock...further modifications would ensue