UPDATE: added two new functions: esKernLockEnter() and esKernLockExit()
Added more text about critical sections
Some corrections