ring-buffer: Fix reader locking when changing the sub buffer order (CVE-2024-50207) | HOL Guard CVE