Append under an exclusive lock with a per-process temp file, and drop the stale --vae-dir flag from the usage example.