kernel/x86: Inline atomic functions and memory barriers
scheduler: Remove unnecessary check against disabled CPU
scheduler: Fix SchedulerModeLocker