lseek: avoid bash 3.2 broken pipe bug