[avalanche] Make the processor's staking preconsensus flag atomic
Summary: This should fix a concurrent access issue in the processor tests which triggers TSAN.
Test Plan:
ninja check
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D19014