Add test to trigger the inconsistent compare function detection in the sorting algorithm.
It modifies a texture on a material from another thread, which changes the material's sort ID,
thus causing the OpaqueComparator's compare method to violate the compare method contract.