Search frictions and the long-run effects of labor market policies