Prison governors have accused Labour of “pantomime politics” over the mistaken release of a migrant sex offender.