[processing] always pass number of cores as integer (fix #10894)