Avoid the overhead of locking in the ServletOutputStream wrapper if it is not an asynchronous request. See gh-32342