The bug was the we copied the lock type to the underlying engine even when external_lock failed.
Attach a file by drag & drop or click to upload