Fix targetSdkVersion gate for EXCLUDED_ROUTES compat change

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2079638

Bug: 230726333
Change-Id: Ibc9a0ea365bb483f66d9f1440b2743595e76744c
Merged-In: Ia80efd07e6a8c6e6cc043411fbc2b56b07b4dd06
(cherry picked from commit dbba5d6b506206f4a10718431f938a3c50d8bc3f)
1 file changed