Added ticket-based buffer routing to ensure all buffers are routed before returning from route_buffers