[RFC] Convert FOR_ALL_WINDOWS to use a locally declared pointer

@philix I decreased the scope on the window variables in this method and was able to stop using `wpnext` in that bottom loop. Looks like it was just being used because it existed.