General mechanisms of task engagement in the primate frontal cortex