shared/gatt-client: Fix discover_primary_cb()

Fix the handling of primary services discovery failure.

(cherry picked from commit cdc2355b608d8950998cbe99023bb58792883592)

Change-Id: I8100cee0142525b779dd6f9f3243f983e5636290
1 file changed