"To remedy this problem, database management systems must lock entities other than just records." . . . .