Set `THREADS` when running validate

Authored by michalt on May 22 2016, 2:26 PM.