tipc: refactor function tipc_link_timeout()