An ex-prison officer who boasted about performing a sex act on an inmate who "manipulated" her has been jailed.