Improve request-cancellation test reliability.