Sketchy threadpool hax

I'm using this locally and it seems to function, but I don't understand
threads well enough to feel comfortable putting this on master and
claiming it as good code