Fix static assert for constexpr Zobrist
Written on top of #7312, sorry that makes it harder to read. The static_assert from 54a85ce8f43ffe0204d332c352c7b43ec5f4803d is incorrect: For example, if all castling keys are set to zero then the `cr == 0` check in the continue will skip the iteration that should return false. The correct condition is `a == b` instead of `cr == 0`, which is what this patch does.
While I was at it I also replaced `int b = 0` with `int b = a` (and same for `f2`) since the cancellation check is symmetric in `a` and `b`.
closes https://github.com/official-stockfish/Stockfish/pull/7319
No functional change