[PATCH openEuler-5.10 10/48] net: avoid quadratic behavior in netdev_wait_allrefs_any()