1. A method comprising: initiating, by a processing device executing a kernel, executions of a plurality of active tasks that each has acquired a respective lock to a record; and in response to release of a first lock to the record by an active task, waking up a previously-designated worker task out of a plurality of idle tasks, wherein the worker task is to attempt an acquisition of a second lock on behalf of at least one remaining task of the plurality of idle tasks.