Use CoinsViewOverlay to speed up ConnectBlock in TestBlockValidity. This also has the benefit of not populating entries in the main cache.
cs_main must be held for each place where the overlay is being used, and the reset guard ensures it will be reset for the next caller.