Split out the logic from RNA_path_from_ID_to_property that calculates the path from a PointerRNA to a property.