Fix race condition in TicketPool