tsan: catch races on fd in more cases
Add check for @foo