Hearthside Food Solutions, a snack producer that was mired in a child labor scandal last year, filed for bankruptcy after struggling to refinance its debt.