[net] tipc: fix unique bearer names sanity check