psocks function to find open sockets by process name