routing: Fix use-after-free in finalize_nhop
FIB_NH_LOG calls the nhop_get_upper_family(nh) to read
nh->nh_priv->nh_upper_family for failure logging.
Call FIB_NH_LOG before freeing nh so failures are logged
without causing a panic.
MFC after: 3 days