Fix the handling of timeouts when using sendfile in cowboy_static