US clothing retailer J Crew swung to a second-quarter net profit on the back of strong sales growth.