Flock Safety said it will lay off 28% of its workforce, affecting 391 of its 1,409 employees, following widespread backlash over its license-plate reader surveillance technology.