Search for linear polarization in solar neighborhood flare stars and spotted stars