nir: Add a new helper for iterating phi sources leaving a block