As a growing number of tech companies lay off workers in preparation for a possible recession, the extent to which legal departments have been hit isn't yet clear. But early signs—and industry recruiters—suggest the outlook isn't particularly dire.