using locks to avoid inconsistencies in written information