of/flattree: Add of_flat_dt_match() helper function