Struggling US women's wear retailer J.Jill Inc has managed to avoid bankruptcy after the majority of its lenders approved a financial restructuring.