Fix cross-platform CI test synchronization (#4205)