Method Structures_LockSubtree()
Locks a structure and every structure below it against writers until the transaction ends, so that a value
inserted into it meanwhile waits and then fails on the foreign key instead of being cascaded away by a delete.
Params: $1 = structure id. null: the engine has one writer at a time and the schema lock is that writer
(SQLite).
public string? Structures_LockSubtree()