Fix expired cart cache deletion logic to avoid racing condition

Fixes #107