Refactored PackageManager.onNewUserCreated() to handle user pre-creation logic.

Prior to this change, this logic was leaked to the callers.

Test: manual verification
Fixes: 162858546

Change-Id: I52295f2889adb501e6166089572e0e3e1148b2f4
2 files changed