grep: add --threads=<num> option and grep.threads configuration