libroot: Add adaptive mutex implementation
kernel/undertaker: Make sure the thread isn't running anymore
scheduler: Reduce false sharing of per-CPU and per-core data