transports.tcp: ensure pull path is being used before attempting chmod. The fix prevents an unnecessary traceback when the TCP transport is not using unix sockets. No functionaly has changed as the traceback occurs when an async task was about to exit anyway.