The Time-of-Check to Time-of-Use (TOCTTOU) race condition, where a system's state changes between a security check and its use, is notoriously difficult to prevent and exploit [1]. Data races, involving unsynchronized concurrent access to shared memory, lead to unpredictable behavior and undefined outcomes in languages like C++ [8, 10]. The ABA problem, unique to lock-free algorithms, occurs when a value changes and then reverts to its original state, misleading subsequent checks [10].