The first commit removes the SetNull helper and inlines the member initialization (C++11). See https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#c-data-structures for rationale.
<strike>The second commit adds the cs_main lock annotation to RaiseValidity. See also #17161.</strike>