x11_Mutex implementation

A basic implementation of the Mutex class for the x11 platform. The unit test thread.cpp now uses a Mutex.