tsan: intercept close syscall