PGO: Indicate errors in profile runtime API

Return 0 for success, non-0 for failure.