Autoregulation of an E2 enzyme by ubiquitin-chain assembly on its catalytic residue