buffer: make use of EINVALID for growing a borrowed buffer This explains more closely what happens. While here, set an error message.