Modify shutdown thread some more

The boost equivilent of pthread_cond_signal would be better than
spinning in a loop, but I don't know enough about boost to
implement that :>