fixed File::seek deadlock