Fix castle right updates

We hit a combination of moves where one player had castling rights, but
his rook was captured. Here we missed correctly taking the castling
right from him, and allowed him to castle later. This resulted in
corrupted board. Steps to reproduce:

   position fen r2qk2r/1pp1ppb1/p4n1p/5bp1/1n1Pp2P/2N3B1/PPPQNPP1/2KR1B1R b kq h3 0 11
   go depth 1

This resulted in the black king being removed from the board at ~ depth
8 from quiscene search.