Micro-optimize perft

Avoid to call perft function when we just need to count
moves, at leaf nodes.

Speed up of almost 2%

No functional change.
Merge branch 'master' into contact_checks
Increase both knight and bishop KingAttackWeights

bench: 5128065