cylc ping: add timeout

Adds a timeout to cylc ping to prevent rose sgc and rose suite-run failing in event of a hung port on one of the machines.

This is a hotfix and we should look at removing cylc ping calls in #544