Mid-market businesses know how to scale, even when times are tough. Here’s what they’re doing—and what you can steal to grow your own business