code: boolean isEnqueued(Reference<? extends T> reference) {
          synchronized (lock) {
              return reference.queueNext != null && reference.queueNext != sQueueNextUnenqueued;
          }
      }
docs: Test if the given reference object has been enqueued but not yet
  removed from the queue, assuming this is the reference object's queue.