Micro-optimize castling handling in do_move()