DUNE Hardware: guard doGetNative() implementation on ESCC class.
DUNE Network: use 'this' object instead of native handle in TCPSocket class.
Merge branch 'bug/2538'. This closes #2538.