Allow RPC call setgenerate to turn off stake miner.