tsan: intercept bind/listen
asan/tsan: fix compilation errors/bugs on Windows where long is 32-bit even in 64-bit mode