move stack allocated `StateInfo`s into `Position` as a ringbuffer
Try to move the stateinfos into two arrays (one for read only history and one for searching).
I ended up with only one array because it's easier in practice.
I did, however, have to bump up the limit for stack allocating functions, because Position is so big now.
https://tests.stockfishchess.org/tests/view/6af6206b8e7fb2e78bc1d2bd
LLR: 2.92 (-2.94,2.94) <-1.75,0.25>
Total: 272160 W: 69011 L: 69048 D: 134101
Ptnml(0-2): 253, 28389, 78825, 28368, 245
closes https://github.com/official-stockfish/Stockfish/pull/7307
No functional change