lib: send WINDOW_UPDATE at `max / 2` window size

Signed-off-by: Fedor Indutny <fedor@indutny.com>
1.25.1