fix bug with 2-fold repetition
when using game history it must be 3-fold, 2-fold only in the search (including root position).

9000 games in 10"+0.1"
2374-2248-4378 [50.7%] LOS=96.8%

No functional change.
signature = 6727896