Middle-market lending is in the midst of a shake-up as non-bank lenders gain ground, competition tightens and private equity ...