Fix use of vlc_object_wait()