Bugfix: submitblock: Use a temporary CValidationState to determine accurately the outcome of ProcessBlock

Fixes #5083 (based on #5105)
Technically, perhaps. Does it help if you consider this a form of documentation?