TypedMessageQueue: compute pending_ from pop_front()