Fix Wipe Data CTS Tests on GSI

Use broadcast to trigger wipe of the work profile instead of running the
test code directly in the work profile user, so that the test doesn't
get killed when the work profile is destroyed.

Change-Id: I32aa3dc61be574d9ce5bb06c168f57c46db7f111
Bug: 110357404
Test: com.android.cts.devicepolicy.ManagedProfileTest
(cherry picked from commit 32ddc2509a448d885df655d2ae7f19535bfea5ca)
3 files changed