fixes to locking, modified, PUT error on truncate