Split Brain Test for Queue

attempt to fix failed first pull request
I ran 150 times both of them without failure.
I would not call the variable 'latch'. It isn't a latch; it is the initial value for the last. So what is the logical meaning of this value?