Adding a safe_mode parameter to inflate_fast() allows the fast path to run with
as few as 3 bytes of avail_out (down from 260). This eliminates the performance
cliff where PNG-style row-by-row decompression falls back to the slow inflate()
state-machine path for the last 260 bytes of each row.
Related: zlib-ng/zlib-ng#2062