Exploiting a TOCTTOU race condition requires precise timing to ensure that the attacker's operations interleave properly with the victim's.
File system mazes force the victim to read a directory entry that is not in the OS cache, and the OS puts the victim to sleep while it is reading the directory from disk.