Removes the given thread from the queue if the thread is still on the queue.
Does nothing (and returns in O(1)) if the thread is not on the queue. Also
does nothing (and returns in O(1)) if the thread is on a different queue.
t - thread to remove from the queue
whether the given thread was removed from the queue