test race condition handling in redis backend