storage: fix a bug that value remains in unique index on duplicated primary key error

[groonga-dev,02633]

Reported by 6elz. Thanks!!!