Fix GATT client leakage when scan is throttled (1/2)

Currently, scan throttling happens after client is registered, but
before the scan is started. This might lead to scan client being leaked.
This patch fixed that by moving check before client registration.

Bug: 64887233
Test: manual
Change-Id: I96e7698a126b41c4fd5e2ce11d1c9084fd560dfc
Merged-In: I96e7698a126b41c4fd5e2ce11d1c9084fd560dfc
(cherry picked from commit 7d0fe2d612a7cc522af1ee3837e3b96d27b58a33)
1 file changed