Md. gets life in prison for lover's murder