[PATCH] tee: handle lookup of shm with reference count 0