Add `-stopafterblockimport` option

Stop after importing blocks. This can be useful for development
and trouble shooting.
Merge pull request #4346

1569353 Add `-stopafterblockimport` option (Wladimir J. van der Laan)