blake: use a constant for threads, reduce mallocated d_hash size

and clean a bit more...
exit on repeated duplicate shares (to enhance)