[PATCH 4.19 35/39] tipc: improve function tipc_wait_for_cond()