tipc: fix race between poll() and setsockopt()