WSGI middleware:  retries requests after optimistic concurrency conflict errors