Call setVisibile immediately when wallpaper not in transition

This was causing issues when `updateWallpaperTokens` was called by `adjustWallpaperWindows`, in particular when locking and unlocking the device, as the visibilities were not committed and the home wallpaper was visible on the lockscreen

Fix: 293142437
Test: Manual: `for i in {1..50}; do adb shell wm dismiss-keyguard; sleep 0.5; adb shell input keyevent KEYCODE_POWER; sleep 1; adb shell input keyevent KEYCODE_POWER; done`
Change-Id: Ibe291f57da589f109427f99bb712064376ba5b73
diff --git a/services/core/java/com/android/server/wm/WallpaperWindowToken.java b/services/core/java/com/android/server/wm/WallpaperWindowToken.java
index 5ea8f65..8e0ad0d 100644
--- a/services/core/java/com/android/server/wm/WallpaperWindowToken.java
+++ b/services/core/java/com/android/server/wm/WallpaperWindowToken.java
@@ -170,7 +170,7 @@
                 linkFixedRotationTransform(wallpaperTarget.mToken);
             }
         }
-        if (mTransitionController.isShellTransitionsEnabled()) {
+        if (mTransitionController.inTransition(this)) {
             // If wallpaper is in transition, setVisible() will be called from commitVisibility()
             // when finishing transition. Otherwise commitVisibility() is already called from above
             // setVisibility().