Fix issues when calling std::move(const&)
Summary:
Passing a symbol to std::move that is marked const is a no-op, which can be fixed in two ways: - Remove the const, or - Remove the std::move
Backport of core#25872.
Depends on D16288.
Test Plan:
ninja all check-all
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D16285