Struggling US women's wear retailer J.Jill Inc has completed a financial restructuring transaction that helped it to avoid bankruptcy.