Fix a race (detected with Fryer and diagnosed by Martin) when we
clear req->wrk on a busy-waiting request.