codevalidator: Clamp number of workers between 2 and 4

Signed-off-by: Michael Buesch <m@bues.ch>