Load object and acquires lock.
352 $lockname = $this->table .
' ' . $id;
354 while (!lock_acquire($lockname)) {
357 throw new Exception(t(
'Impossible to get the database lock %lock', array(
'%lock' => $lockname)));
359 lock_wait($lockname);
361 return parent::load($id);