Transient ferromagnetic-like state mediating ultrafast reversal of antiferromagnetically coupled spins