fix concurrency issues of the cart rest calls