Revert "Revert "Binder.restoreCallingIdentity moved from 'catch' to 'finally' block.""

This reverts commit a6573a641c69ad6f8e53042cf84c7b2cc6d435b4.

Reason for revert: Reverting the revert, since it wasn't the culprit

Change-Id: I76a92f4a4fad3c1880d8767f91fd5c47631d5069
diff --git a/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java b/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java
index 6a35533..7dc4f97 100644
--- a/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java
+++ b/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java
@@ -1549,8 +1549,9 @@
                     try {
                         mReply.sendResult(null);
                     } catch (RemoteException e) {
-                        Binder.restoreCallingIdentity(ident);
                         Slog.d(TAG, "failed to send callback!", e);
+                    } finally {
+                        Binder.restoreCallingIdentity(ident);
                     }
                     mReply = null;
                 }