Add SimpleMutex class and platform specific mutex function

Add SimpleMutex class and platform specific mutex function and SimpleMutex unit test
Why not just use hardcoded numbers? That would make the test smaller and clearer. The numbers should be known anyway, right?