Set osapi_compute_workers to number of processors

Backport from 4.1