vlc_mutex_locker: automatic mutex locking for C++