scheduler: Check team user time timers before entering scheduler

User timers may cause another thread to become ready in which case we would
like this to happen before scheduler_reschedule() chooses next thread to
be executed.
scheduler: Fix core unassignment
kernel/{x86, vm}: Add more error checks in VM initialization