1. A method comprising: initiating, by a processing device executing a kernel, execution of an active task that has acquired a first lock to a record, wherein a plurality of idle tasks are waiting to access the record, and wherein one of the plurality of idle tasks was previously designated as a worker task; in response to releasing, by the active task, the first lock to the record, waking up the designated worker task out of the plurality of idle tasks; and attempting, by the designated worker task, an acquisition of a second lock on behalf of at least one of the remaining plurality of idle tasks.