A Middlesbrough woman who threatened to kill a solicitor five years after losing a family court case has narrowly avoided an immediate prison sentence.