M&G buys majority stake in private credit firm