libvlc: ref_count should only be accessed in the lock.