Wrap calls to setgenerate...

...and drop unnecessary rpc calls to getblockcount (since every simulation
starts over) and addnode (replace it with --addpeer option in mining btcd
configuration).