Fix queue-and-counter race condition

as per discussion at https://github.com/Netflix/RxJava/pull/962#issuecomment-37743529