Discrimination, social psychology, and hysteresis in labor markets