The per-bucket lock was inserted without synchronization. Two first writers could take different locks and overwrite each other's preset file. Lock creation now happens under a guard lock. Co-authored-by: AE <by-ae@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com>