[CDF-26482] ☣ Avoid threads inside a thread (#2279)

# Description

The issue is that the PySDK spins up multiple partitions which each runs
on threads. When you do that inside a thread, then you risk the terminal
freezing..

## Bump

- [x] Patch
- [ ] Skip

## Changelog

### Fixed

- When downloading assets/timeseries/files/events, for some edge cases
the terminal could freeze. This is now fixed.
