sched: fix profile allocation failure handling