Check for deadlocked queue before reading queue as it may already be known to be dead, thus not needing the timeout.