Spin–spin coupling constants and triplet instabilities in Kohn–Sham theory