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

Fixes #5083 (based on #5105)
@TheBlueMatt #3727 will do that - this PR is just fixing a new bug introduced since 0.9.