tsan: handle memory read/write in syscalls