Teesside solicitor jailed for fraud