Method ObjectStorage_LockObjectsForUpdate()
Lock objects for update (row locking) and RETURN THE LOCKED IDS. Params: $1=objectIds (array)
Contract (BR-9, 2026-09-02): SELECT _id (not SELECT 1) - the returned rows are the ids that
exist and are now locked; the caller counts them, a missing id is simply not in the result.
Rows are taken in ascending _id order so concurrent lockers cannot deadlock on each other.
PostgreSQL: SELECT _id ... FOR UPDATE. MSSQL: WITH (UPDLOCK, ROWLOCK). SQLite: existence
check only - writers are serialized database-wide, there is no row lock to take.
public string ObjectStorage_LockObjectsForUpdate()