[PATCH 4.14 19/21] tipc: improve function tipc_wait_for_cond()