Second prisoner sentenced over attack on murderer Jamie Mitc