Query.php line 538. Change: Changed return value of pessimistic locking releasedAgedLocks to return the number of released locks.