Sync hasRestrictedModeAccess with PermissionMonitor in NetworkPolicyManagerService

NetworkPolicyManagerService is missing PermissionMonitor's check against getUidsAllowedOnRestrictedNetworks which causes restricted networking mode's global setting allowlist to be disfunctional.
This adds the check to NetworkPolicyManagerService.

Bug: https://issuetracker.google.com/issues/206947902
Change-Id: I98c5fe72bb778a1d843ce3c3d320c26bed5297cc
(cherry picked from commit 3b6f2c8d1fb587f2770d8974f10dd192d623ccec)
1 file changed