cluster: Prevent message loops when replaying logs.