fixes #721 Don't advance the cursor on delete with justOne = true
fixes #709 fix up the condition for fsync on getLastError