Start implementing semaphore-based mutex

Encapsulate type conversions involving _sem_t.
Move mutex package to suitable directory