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

Fixes #5083 (based on #5105)
Right, that was my comment as well. If the notification arrives asynchronously this wouldn't work.