Split mutex.c and .h each into three files