Switcher thread fix

Fixed the mining threads block causing the miner to hang on algo
switcher. Thanks @mrbrdo for the help.