Fix TestResponseCacheInflight to correctly wait inflight requests
Fix TestResponseCacheInflight to correctly wait inflight requests

It was broken in two ways:

- "count" was incremented in both at "for" post statement and inside the "for" loop.
- "case <- c" can proceed multiple times when c has been closed.

The test normally passes, but it sometimes panics with engine._Cfunc_DBGet().

maxlang/cockroach,veteranlu/cockroach,vaibhavarora/cockroach,arjun4084346/cockroach,freakynit/cockroach,cuongdo/cockroach,nieyy/cockroach,mbertschler/cockroach,vaibhavarora/cockroach,freakynit/cockroach,marcuswestin/cockroach,mbertschler/cockroach,sunya123/cockroach,cuongdo/cockroach,cuongdo/cockroach,sunya123/cockroach,il9ue/cockroach,marcuswestin/cockroach,cuongdo/cockroach,GokulSrinivas/cockroach,vivekmenezes/cockroach,mbertschler/cockroach,paperstreet/cockroach,jamesgraves/cockroach,marcuswestin/cockroach,cockroachdb/cockroach,jess-edwards/cockroach,GokulSrinivas/cockroach,jamesgraves/cockroach,jamesgraves/cockroach,arjun4084346/cockroach,jmank88/cockroach,alunarbeach/cockroach,alunarbeach/cockroach,cuongdo/cockroach,sunya123/cockroach,vaibhavarora/cockroach,marcuswestin/cockroach,nieyy/cockroach,linearb/cockroach,linearb/cockroach,alunarbeach/cockroach,il9ue/cockroach,GokulSrinivas/cockroach,GokulSrinivas/cockroach,bg451/cockroach,jmank88/cockroach,cuongdo/cockroach,mbertschler/cockroach,jess-edwards/cockroach,petermattis/cockroach,veteranlu/cockroach,jamesgraves/cockroach,vaibhavarora/cockroach,petermattis/cockroach,petermattis/cockroach,veteranlu/cockroach,paperstreet/cockroach,glycerine/cockroach,alex/cockroach,linearb/cockroach,glycerine/cockroach,nieyy/cockroach,maxlang/cockroach,bg451/cockroach,paperstreet/cockroach,maxlang/cockroach,jess-edwards/cockroach,alunarbeach/cockroach,bg451/cockroach,jmank88/cockroach,bg451/cockroach,arjun4084346/cockroach,petermattis/cockroach,jmank88/cockroach,veteranlu/cockroach,linearb/cockroach,petermattis/cockroach,marcuswestin/cockroach,jamesgraves/cockroach,vaibhavarora/cockroach,mbertschler/cockroach,veteranlu/cockroach,alex/cockroach,glycerine/cockroach,alex/cockroach,glycerine/cockroach,yiixiansheng/cockroach,il9ue/cockroach,yiixiansheng/cockroach,GokulSrinivas/cockroach,yiixiansheng/cockroach,linearb/cockroach,yiixiansheng/cockroach,paperstreet/cockroach,glycerine/cockroach,sunya123/cockroach,glycerine/cockroach,veteranlu/cockroach,glycerine/cockroach,maxlang/cockroach,bg451/cockroach,petermattis/cockroach,maxlang/cockroach,nieyy/cockroach,freakynit/cockroach,paperstreet/cockroach,bg451/cockroach,marcuswestin/cockroach,vivekmenezes/cockroach,alunarbeach/cockroach,cockroachdb/cockroach,jmank88/cockroach,mbertschler/cockroach,petermattis/cockroach,sunya123/cockroach,glycerine/cockroach,vivekmenezes/cockroach,maxlang/cockroach,sunya123/cockroach,vaibhavarora/cockroach,vivekmenezes/cockroach,cockroachdb/cockroach,arjun4084346/cockroach,nieyy/cockroach,yiixiansheng/cockroach,veteranlu/cockroach,cockroachdb/cockroach,jamesgraves/cockroach,bg451/cockroach,freakynit/cockroach,jess-edwards/cockroach,cockroachdb/cockroach,jamesgraves/cockroach,il9ue/cockroach,alex/cockroach,petermattis/cockroach,nieyy/cockroach,veteranlu/cockroach,GokulSrinivas/cockroach,linearb/cockroach,vivekmenezes/cockroach,marcuswestin/cockroach,alunarbeach/cockroach,cuongdo/cockroach,mbertschler/cockroach,vivekmenezes/cockroach,il9ue/cockroach,arjun4084346/cockroach,jmank88/cockroach,jess-edwards/cockroach,arjun4084346/cockroach,il9ue/cockroach,vivekmenezes/cockroach,paperstreet/cockroach,cuongdo/cockroach,vaibhavarora/cockroach,alex/cockroach,vaibhavarora/cockroach,yiixiansheng/cockroach,marcuswestin/cockroach,vivekmenezes/cockroach,sunya123/cockroach,paperstreet/cockroach,jess-edwards/cockroach,il9ue/cockroach,arjun4084346/cockroach,jess-edwards/cockroach,cockroachdb/cockroach,nieyy/cockroach,freakynit/cockroach,nieyy/cockroach,il9ue/cockroach,arjun4084346/cockroach,alex/cockroach,jmank88/cockroach,cockroachdb/cockroach,maxlang/cockroach,linearb/cockroach,freakynit/cockroach,sunya123/cockroach,paperstreet/cockroach,cockroachdb/cockroach,maxlang/cockroach