fix more usages of lseek