It's a perilous time to be a midsize law firm in a legal market where large firms are growing.