Before there were only two: "main" and "idle". But now there can also be a thread for "usbus". The code will now use sched_num_threads and it subtracts that number from MAXTHREADS. This resolves issue #14180