Test passes fine locally but consistently fails on CI with CancelledError on lambda parameter.
https://github.com/milesgranger/distributed/actions/runs/8201545593/job/22430476616#step:19:3885
FAILED distributed/tests/test_dask_collections.py::test_dataframe_set_index_sync[] - concurrent.futures._base.CancelledError: ('len-tree-b08e45d3088106d64c77136c41d6bd5b', 0)
xref: #8560