Severely mentally ill inmate gets off death row