Remove GetNextBlockScriptFlags's requirement to hold cs_main
Summary: It turns out this is not needed.
Test Plan: Build with clang, check there's no warning.
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D4100