Cache the process of WindowInfo when requested.

This is a pretty slow call. Since the process of a window can't change,
we now cache it so it is only requested once.