Fix Thread Safety for Unsubscribe

I'm using a separate variable so the volatile is only touching during window start/end and unsubscribe rather than every onNext.
Merge pull request #1833 from benjchristensen/window-tweaks

Fix Thread Safety for Unsubscribe of Window