Change blockchain mutex to guard blockqueue and make recursive. Recurisve mutex for miner thread.