Avoiding a race condition in interactivex2.