Added a LockGuard class which has the same behaviour of std::lock_guard (c++ 11) for a yarp::os::Mutex