node: Combine event with sync status change
Use the same logic to check whether the sync status was updated, to emit
the RefsSynced event. That way they are at least consistent.
Use the same logic to check whether the sync status was updated, to emit
the RefsSynced event. That way they are at least consistent.