The fashion retailer is recalling 24,700 pajama pants for violating the flammability regulations of children's sleepwear.