Entry to the queue to see Queen Elizabeth lying in state has been closed for at least six hours after it reached capacity.