Avoid potential deadlock by writing in PIPE_BUF chunks