[PATCH RESEND] pipe: avoid creating empty pipe buffers