Added enter and exit mutex function. Also fill out global kernel structures.