Fix IllegalArgumentException under PolicySerializers

Using Set.of on the array split from device_policy_state.xml can throw
IllegalArgumentException if an admin set a policy containing the
separator character (;) multiple times. By default, this propagates up
and drops all subsequent policies, or crashes system_server and
causes a bootloop. Use HashSet to silently deduplicate elements.

Test: manual
Bug: 515039631
Flag: EXEMPT BUGFIX
NO_JAVA_FORMAT=It reports errors on unchanged lines.
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:a75ee4d4670bc7425d960406651e12a171ae7b52
Merged-In: I78b97ee3d94c62c5a3a23b2e09633b70313e1663
Change-Id: I78b97ee3d94c62c5a3a23b2e09633b70313e1663
4 files changed