Fix bug in rotbuf_next_chunk() when rotation == 0

Caused occasional infinite loop in "keyring add" command and others