tsan: catch more races on file descriptors