Revert "Revert "PhoneWindowManager: Delay setting updates during window animation.""

This reverts commit 3dfad97459aa2463d0a30676bcb13e859367e79e.
Prevent MediaScanner infinite loop with invalid path

including double slash  "/storage/sdcard0/xx//xxx/xxxx"

Change-Id: I112a70c88b5ec662482b79c3151310b9b9b52e40