Lingerie company Frederick's of Hollywood delivered the company's first quarterly profit since revamping its corporate strategy - but only just.