Substituted yarp::os::Mutex with yarp::os::Semaphore for compatibility with yarp 2.3.22