Stockpiling, private debt, foreign funding: Mid-sized companies are finding money where they can as inflation and interest rates bite | Fortune