Pass the session UID to the identity comparison callback directly, instead of passing the ID pointer and accessing the session UID inside the function. This way the dangling ID pointer is avoided. Makes use of the support for passing named integers via context, which was added in the previous commit. Pull Request: https://projects.blender.org/blender/blender/pulls/131676