Common lib: buffered log writer: allow to set blocking io, and keep all other file descriptor flags.