Backported socket_get_tcp_priv from 4.2 to fix TRQ-1661. pbsdsh
jobs get stuck in a running state