I'd be a little uncomfortable going through `dlopen`/`dlsym`/`dlclose` for all created threads. This would mean that all native task spawns would take these hits.

I'm not entirely sure, but is there a difference between PTHREAD_STACK_MIN and __pthread_get_minstack?

That being said, I would be very comfortable merging this without fixing #6233 just yet, but I would imagine that a solution to #6233 would likely involve using `dlsym` to figure out if you can actually call it.