Solving the cashier problem with goroutines