kernel - Introduce hard code sections, simplify critical sections & mplocks