Fix Thread Safety for Unsubscribe of Window

I'm using a separate variable so the volatile is only touching during window start/end and unsubscribe rather than every onNext.