limitTileDBCores function

Limit TileDB core use to a given number of cores