In several cases synchronization issues around discarded resources could lead to crashes. These crashes where more prominent on NVIDIA as they reuse their handles more often. This PR requires external synchronization when data is moved from a discard pool to the main orphaned data discard pool. Also the device timeline should be guarded by the same mutex. Pull Request: https://projects.blender.org/blender/blender/pulls/140274