Detect repetitions before they happen in qsearch
Passed STC:
https://tests.stockfishchess.org/tests/view/
64d495995b17f7c21c0e29ed
LLR: 2.95 (-2.94,2.94) <0.00,2.00>
Total: 340288 W: 86664 L: 85910 D: 167714
Ptnml(0-2): 1030, 38855, 89697, 39455, 1107
Passed LTC:
https://tests.stockfishchess.org/tests/view/
64d5e1085b17f7c21c0e4ab5
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 193230 W: 49235 L: 48606 D: 95389
Ptnml(0-2): 98, 20432, 54921, 21071, 93
closes https://github.com/official-stockfish/Stockfish/pull/4742
Bench:
1579576