Motherwell have extended the loan deal of Birmingham defender Fraser Kerr until the end of the season.