Proper bug fix for the spin ID metadata lookup table pruning.
The Mol_res_spin.test_prune_metadata system test now passes. The previous fix of r18232 was not
complete, and it should have been in the spin_id_variants_elim() function rather than
metadata_prune().