Granularity of Locks and Degrees of Consistency in a Shared Data Base