two phase locking scheme