Fix data race accessing referencedNetworkEndpoint.kind
Fix data race accessing referencedNetworkEndpoint.kind

Wrapping "kind" into atomic access functions.

Fixes #789

PiperOrigin-RevId: 266485501

google/netstack