fix shmem_lock