bsps/sparc: Fix ambapp_find_by_idx()

The expression "*pi++" post-increments the pointer (not the value).