output-filter: use write handler if we get NGX_AGAIN