[Bugfix] Fix the problem that the home key can not work in some cases.

When closeSystemDialogs of ActivityTaskManagerService is called from the one way binder callback KeyguardExitResult, the getCallingPid of Binder will return 0, resulting in a NullPointerException in proc.isPerceptible().

Change-Id: I76b653ae08d47fe232677413382d60475a2cbc47
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index 3af6e18..2cf6608 100644
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -3474,7 +3474,12 @@
                     @Override
                     public void onKeyguardExitResult(boolean success) {
                         if (success) {
-                            startDockOrHome(displayId, true /*fromHomeKey*/, awakenFromDreams);
+                            final long origId = Binder.clearCallingIdentity();
+                            try {
+                                startDockOrHome(displayId, true /*fromHomeKey*/, awakenFromDreams);
+                            } finally {
+                                Binder.restoreCallingIdentity(origId);
+                            }
                         }
                     }
                 });