Bed Bath & Beyond lines up funding in a last-ditch bid to avoid bankruptcy