BUG: sparse: invalidate has_canonical_format in coo_matrix.setdiag