Fix data race (UB) in InterruptRPC()
.
Before:
0$ ./configure --with-sanitizers=thread
1$ make
2$ test/functional/test_runner.py feature_shutdown.py
3…
4SUMMARY: ThreadSanitizer: data race rpc/server.cpp:314 in InterruptRPC()
5…
6ALL | ✖ Failed | 2 s (accumulated)
After:
0$ ./configure --with-sanitizers=thread
1$ make
2$ test/functional/test_runner.py feature_shutdown.py
3…
4ALL | ✓ Passed | 3 s (accumulated)