Add SimpleMutex class and platform specific mutex function

Add SimpleMutex class and platform specific mutex function and SimpleMutex unit test
You probably want to use the UT_PTRSET macro for switching the function pointers. That will reduce this code significantly and will do the same.