mining: remove chainState dependency.
mining: remove chainState dependency.

Port of upstream commit 2274d36 (subset). In preparation of the
removal of chainState.

decred/dcrd,decred/dcrd,jrick/dcrd,jrick/dcrd