If the node hasn’t processed the inv from the outbound peer before the mocktime bump, the peer won’t be preferred after the other inv timeouts, failing the test . Therefore, add a sync, just like there is one after the send_message
calls in the previous lines.
Fixes #31833